From 2f58cef4822e2c28bb765369a31dfbfb67eb4f7d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 14 May 2024 14:38:16 +0200 Subject: [vmware-common/run-virt] Fix is_on usage --- .../data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc | 2 +- .../data/opt/openslx/vmchooser/plugins/vmware/run-virt.include | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc index 87f3d736..abc0081f 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc @@ -117,7 +117,7 @@ setup_virtual_floppy() { local debug= $DEBUG && debug=1 local editmode=0 - if is_on VMCHOOSER_ADMIN_MODE; then + if is_on "$VMCHOOSER_ADMIN_MODE"; then editmode=1 fi 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 e55a533b..b1400571 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 @@ -65,7 +65,7 @@ run_plugin() { # HACK: using the modified version of the wrapper script declare -rg VIRTCMD="/opt/openslx/bin/vmplayer" # -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 + if is_on "$VMCHOOSER_ADMIN_MODE" && isset DMSD_COW_SESSION; then VIRTCMDOPTS+=( "${VM_RUN_FILE}" ) else VIRTCMDOPTS+=( "-X" "${VM_RUN_FILE}" ) -- cgit v1.2.3-55-g7522