mirror of https://github.com/Hilbis/Hilbish
feat: add hilbish.interactive and hilbish.login vars
these are to check from lua if hilbish is running an interactive or login sessiondev
parent
54d88f9f6c
commit
97a6e4baf2
|
@ -36,6 +36,8 @@ func HilbishLoader(L *lua.LState) int {
|
||||||
L.SetField(mod, "host", lua.LString(host))
|
L.SetField(mod, "host", lua.LString(host))
|
||||||
L.SetField(mod, "home", lua.LString(homedir))
|
L.SetField(mod, "home", lua.LString(homedir))
|
||||||
L.SetField(mod, "dataDir", lua.LString(dataDir))
|
L.SetField(mod, "dataDir", lua.LString(dataDir))
|
||||||
|
L.SetField(mod, "interactive", lua.LBool(interactive))
|
||||||
|
L.SetField(mod, "login", lua.LBool(interactive))
|
||||||
|
|
||||||
xdg := L.NewTable()
|
xdg := L.NewTable()
|
||||||
L.SetField(xdg, "config", lua.LString(confDir))
|
L.SetField(xdg, "config", lua.LString(confDir))
|
||||||
|
|
Loading…
Reference in New Issue