diff --git a/cointop/util.go b/cointop/util.go index 0d00b64..90d0cea 100644 --- a/cointop/util.go +++ b/cointop/util.go @@ -31,6 +31,11 @@ func userHomeDir() string { home = os.Getenv("USERPROFILE") } return home + } else if runtime.GOOS == "linux" { + home := os.Getenv("XDG_CONFIG_HOME") + if home != "" { + return home + } } return os.Getenv("HOME") }