summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/run-virt.include8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/run-virt.include b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/run-virt.include
index 24debedd..e55a533b 100644
--- a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/run-virt.include
+++ b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/run-virt.include
@@ -64,6 +64,10 @@ run_plugin() {
# HACK: using the modified version of the wrapper script
declare -rg VIRTCMD="/opt/openslx/bin/vmplayer"
- # -X for fullscreen, plus VMX file
- VIRTCMDOPTS+=( "-X" "${VM_RUN_FILE}" )
+ # -X for fullscreen, plus VMX file - run windowed in CoW mode, so we can see the cowgui
+ if is_on VMCHOOSER_ADMIN_MODE && isset DMSD_COW_SESSION; then
+ VIRTCMDOPTS+=( "${VM_RUN_FILE}" )
+ else
+ VIRTCMDOPTS+=( "-X" "${VM_RUN_FILE}" )
+ fi
}