summaryrefslogtreecommitdiffstats
path: root/core/modules/vmchooser2
diff options
context:
space:
mode:
authorSimon Rettberg2024-05-08 18:45:20 +0200
committerSimon Rettberg2024-05-08 18:45:20 +0200
commitb57f124784e5bcf4b025a27e20392bafc1ac0546 (patch)
tree05ac2a718a265b9554b4441c8a57f9c041db49d3 /core/modules/vmchooser2
parent[lightdm-greeter-bwlp/vmchooser2] Handle cow token (diff)
downloadmltk-b57f124784e5bcf4b025a27e20392bafc1ac0546.tar.gz
mltk-b57f124784e5bcf4b025a27e20392bafc1ac0546.tar.xz
mltk-b57f124784e5bcf4b025a27e20392bafc1ac0546.zip
[run-virt/vmchooser2] Initial support for CoW-sessions
Diffstat (limited to 'core/modules/vmchooser2')
-rwxr-xr-xcore/modules/vmchooser2/data/opt/openslx/bin/vmchooser3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
index d0555bfe..4889b5de 100755
--- a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
+++ b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser
@@ -94,8 +94,9 @@ if [ -n "$SLX_SCREEN_SAVER_TIMEOUT" ]; then
fi
if [ -s "/run/user/$(id -u)/cow-token" ]; then
- EXTRA+=( "--cow-token" "/run/user/$(id -u)/cow-token" )
+ EXTRA+=( "--cow-token" "$( cat "/run/user/$(id -u)/cow-token" )" )
fi
+set +x
exec vmchooser.real "$@" --url "$URL" --fullscreen --tab "$TAB" --start-uuid "$SLX_EXAM_START" "${EXTRA[@]}"