summaryrefslogtreecommitdiffstats
path: root/core/modules/vmchooser2
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-12 14:23:05 +0200
committerSimon Rettberg2019-06-12 14:23:05 +0200
commit9fa7ce0690fdb9cfc77357d4782d46a5160efc8e (patch)
tree13b27b8ba9d0db74e9ad93b7af991244614c15d1 /core/modules/vmchooser2
parentswallow errors during distcc detection (diff)
downloadmltk-9fa7ce0690fdb9cfc77357d4782d46a5160efc8e.tar.gz
mltk-9fa7ce0690fdb9cfc77357d4782d46a5160efc8e.tar.xz
mltk-9fa7ce0690fdb9cfc77357d4782d46a5160efc8e.zip
[vmchooser2] Show screen saver disable checkbox if applicable
Diffstat (limited to 'core/modules/vmchooser2')
-rwxr-xr-xcore/modules/vmchooser2/data/opt/openslx/bin/vmchooser4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
index 08da8bff..f9b4ad3a 100755
--- a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
+++ b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
@@ -77,6 +77,10 @@ if [ -n "$SLX_LOCATIONS" ]; then
EXTRA="$EXTRA --locations $SLX_LOCATIONS"
fi
+if [ -n "$SLX_SCREEN_SAVER_TIMEOUT" ]; then
+ EXTRA="$EXTRA --allow-screensaver-disable"
+fi
+
# No quotes around $EXTRA!
exec vmchooser.real "$@" --url "$URL" --fullscreen --tab "$TAB" --start-uuid "$SLX_EXAM_START" $EXTRA