binctr/vendor/github.com/godbus/dbus/homedir_dynamic.go
Jess Frazelle 3cf304f3e1 updates
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
2016-04-15 21:53:49 -07:00

15 lines
171 B
Go

// +build !static_build
package dbus
import (
"os/user"
)
func lookupHomeDir() string {
u, err := user.Current()
if err != nil {
return "/"
}
return u.HomeDir
}