Api/minux.setconfig()

From Minux Wiki
Revision as of 22:55, 8 October 2024 by Shorun (talk | contribs) (Created page with "minux api used to change the system's configuration '''usage:''' local bool = minux.setconfig(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" '''output:''' returns false if failed, true if...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

minux api used to change the system's configuration


usage:

local bool = minux.setconfig(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"


output:

returns false if failed, true if success


eg:

local temp = minux.config("login","disabled") - disabled this machine's login setting and returns output in temp