fix: make user dataDir on non linux the config dir

dev
TorchedSammy 2021-12-14 09:41:47 -04:00
parent 2e4bea8292
commit fe8372379c
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func hilbishLoader(L *lua.LState) int {
case "linux":
userDataDir = getenv("XDG_DATA_HOME", curuser.HomeDir + "/.local/share")
default:
userDataDir = filepath.Join(userConfigDir, "data")
userDataDir = filepath.Join(userConfigDir)
}
util.SetField(L, hshuser, "config", lua.LString(userConfigDir), "User's config directory")