fix: use os agnostic function to get config dir

windows-fixes
TorchedSammy 2022-02-23 22:01:35 -04:00
parent 209abfac77
commit cb3d0a2e8e
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -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)