diff options
author | Simon Rettberg | 2024-05-03 17:09:42 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-05-03 17:09:42 +0200 |
commit | 0b5da07577fd168692022e6b9311fb221ab38cb7 (patch) | |
tree | 79d046d9012405e4c2fa2304c005fc76090eca88 /core/modules/vmchooser2/data/opt/openslx/bin/vmchooser | |
parent | [hardware-stats] Minor cleanup (diff) | |
download | mltk-0b5da07577fd168692022e6b9311fb221ab38cb7.tar.gz mltk-0b5da07577fd168692022e6b9311fb221ab38cb7.tar.xz mltk-0b5da07577fd168692022e6b9311fb221ab38cb7.zip |
[lightdm-greeter-bwlp/vmchooser2] Handle cow token
Diffstat (limited to 'core/modules/vmchooser2/data/opt/openslx/bin/vmchooser')
-rwxr-xr-x | core/modules/vmchooser2/data/opt/openslx/bin/vmchooser | 4 |
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 a0048f39..d0555bfe 100755 --- a/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser +++ b/core/modules/vmchooser2/data/opt/openslx/bin/vmchooser @@ -93,5 +93,9 @@ if [ -n "$SLX_SCREEN_SAVER_TIMEOUT" ]; then EXTRA+=( "--allow-screensaver-disable" ) fi +if [ -s "/run/user/$(id -u)/cow-token" ]; then + EXTRA+=( "--cow-token" "/run/user/$(id -u)/cow-token" ) +fi + exec vmchooser.real "$@" --url "$URL" --fullscreen --tab "$TAB" --start-uuid "$SLX_EXAM_START" "${EXTRA[@]}" |