aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/godbus/dbus/v5/homedir_dynamic.go
blob: 2732081e73b47367d4f084a62dfe3e56d33906bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +build !static_build

package dbus

import (
	"os/user"
)

func lookupHomeDir() string {
	u, err := user.Current()
	if err != nil {
		return "/"
	}
	return u.HomeDir
}