Api/minux.config(): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
- debug, setting | setting can be: "disabled", "enabled", "logging", "full" | - debug, setting | setting can be: "disabled", "enabled", "logging", "full" | ||
- get , type | type can be any of the above arguments, returns setting value | |||
Line 22: | Line 25: | ||
changes the desired setting accordingly | changes the desired setting accordingly | ||
eg: | |||
minux.config("login","disabled") disabled this machine's login setting | |||
local tempdata = minux.config("get","login") outputs the login setting to tempdata |
Revision as of 14:01, 30 September 2024
minux api used to change the system's configuration
usage:
minux.config(type, setting)
Arguments:
- login , setting | setting can be: "network", "local", "disabled" -
- update, setting | setting can be: "always, "enabled", "disabled"
- ui , setting | setting can be: "prompt", "menu" or "workspace"
- debug, setting | setting can be: "disabled", "enabled", "logging", "full"
- get , type | type can be any of the above arguments, returns setting value
output:
changes the desired setting accordingly
eg:
minux.config("login","disabled") disabled this machine's login setting
local tempdata = minux.config("get","login") outputs the login setting to tempdata