Nxshlib¶
All function look at first in $NX_CONFIG_HOME/session.rc, then (if nothing found) in /etc/nx/system.rc. If source
is given, either only the system.rc ("sys") or session.rc ("usr") is tried.
getkey key [-d default] [-n var_name] [-N] [source]
Returns 0 if key
was found, 1 otherwise. Stores the value for key
into $value
.
If -d default
was given, returns 0 even if key
was not found and stores value into $value
.
If -n var_name
was gives, value is stored in $var_name
instead of $value
.
If -N
was set, value is stored in $key
instead of $value
.
getapp key [source]
Note that getapp is a stub. Parameters like in getkey do not work and may break operation.
Returns 0 if key
was found, 1 otherwise. Stores the value for keyApp_ into
$command@.
getkeyarray key [source]
Note that getkeyarray will change: it shall return 0 and 1 like the others
Note that getapp is a stub. Parameters like in getkeyarray do not work and may break operation.
If key
was found, interprets its value as an array (in shell notation) and stores its values in $value
. The array is empty if key
is not found.
keyistrue key [source]
Returns 0 if key
was found and its value was true. 1 otherwise.
Updated by Stefan Mark almost 5 years ago · 1 revisions