2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 19:53:23 +00:00

feat: add hilbish.dataDir var

This commit is contained in:
sammyette 2021-10-16 13:50:59 -04:00
parent 20acfad2c2
commit 3b97b22f10
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5

View File

@ -33,6 +33,7 @@ func HilbishLoader(L *lua.LState) int {
setField(L, mod, "user", lua.LString(username), "Current user's username") setField(L, mod, "user", lua.LString(username), "Current user's username")
setField(L, mod, "host", lua.LString(host), "Hostname of the system") setField(L, mod, "host", lua.LString(host), "Hostname of the system")
setField(L, mod, "home", lua.LString(homedir), "Path of home directory") setField(L, mod, "home", lua.LString(homedir), "Path of home directory")
setField(L, mod, "dataDir", lua.LString(dataDir), "Path of Hilbish's data files")
xdg := L.NewTable() xdg := L.NewTable()
setField(L, xdg, "config", lua.LString(confDir), "XDG config directory") setField(L, xdg, "config", lua.LString(confDir), "XDG config directory")