Api/minux.config(): Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
[[Api/minux|minux api]] used to change the system's configuration
this has been plit into [[Api/minux.getconfig()|minux.getconfig()]] and [[Api/minux.setconfig()|minux.setconfig()]]
 
 
'''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

Latest revision as of 22:59, 8 October 2024

this has been plit into minux.getconfig() and minux.setconfig()