mirror of https://github.com/Hilbis/Hilbish
fix: use os agnostic function to get config dir
parent
209abfac77
commit
cb3d0a2e8e
2
main.go
2
main.go
|
@ -37,7 +37,7 @@ var (
|
|||
func main() {
|
||||
curuser, _ = user.Current()
|
||||
homedir := curuser.HomeDir
|
||||
confDir = getenv("XDG_CONFIG_HOME", homedir + "/.config")
|
||||
confDir, _ = os.UserConfigDir()
|
||||
preloadPath = strings.Replace(preloadPath, "~", homedir, 1)
|
||||
sampleConfPath = strings.Replace(sampleConfPath, "~", homedir, 1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue