mirror of https://github.com/Hilbis/Hilbish
fix: make user dataDir on non linux the config dir
parent
2e4bea8292
commit
fe8372379c
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue