diff options
-rwxr-xr-x | core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/is-autologin-enabled | 2 | ||||
-rwxr-xr-x | core/modules/vmchooser2/data/opt/openslx/bin/vmchooser | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/is-autologin-enabled b/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/is-autologin-enabled index 92b223a1..4d6146e5 100755 --- a/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/is-autologin-enabled +++ b/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/is-autologin-enabled @@ -2,4 +2,4 @@ . /opt/openslx/config -[ -n "$SLX_AUTOLOGIN" ] +[ -n "${SLX_AUTOLOGIN%OFF}" ] diff --git a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser index 21efe6df..39563322 100755 --- a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser +++ b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser @@ -50,11 +50,15 @@ if [ -z "$SLX_NO_PVS" ]; then fi fi +if [ -z "${SLX_AUTOLOGIN%OFF}" ] && [ -n "$SLX_VMCHOOSER_TIMEOUT" ] && [ "$SLX_VMCHOOSER_TIMEOUT" -gt 0 ]; then + EXTRA="$EXTRA --autoquit $SLX_VMCHOOSER_TIMEOUT" +fi + # No quotes around $EXTRA! if [ -z "$SLX_LOCATIONS" ]; then - exec vmchooser.real "$@" --url "$URL" --fullscreen --tab "$TAB" --start-uuid "$SLX_EXAM_START" --autoquit 120 $EXTRA + exec vmchooser.real "$@" --url "$URL" --fullscreen --tab "$TAB" --start-uuid "$SLX_EXAM_START" $EXTRA fi # No quotes around $EXTRA! -exec vmchooser.real "$@" --url "$URL" --fullscreen --tab "$TAB" --start-uuid "$SLX_EXAM_START" --locations "$SLX_LOCATIONS" --autoquit 120 $EXTRA +exec vmchooser.real "$@" --url "$URL" --fullscreen --tab "$TAB" --start-uuid "$SLX_EXAM_START" --locations "$SLX_LOCATIONS" $EXTRA |