summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-05-14 14:38:16 +0200
committerSimon Rettberg2024-05-14 14:38:16 +0200
commit2f58cef4822e2c28bb765369a31dfbfb67eb4f7d (patch)
tree0287075474012062ca492651e6cddca6378d4ac5
parent[run-virt] Force short xdg config dir name for libvirt (diff)
downloadmltk-2f58cef4822e2c28bb765369a31dfbfb67eb4f7d.tar.gz
mltk-2f58cef4822e2c28bb765369a31dfbfb67eb4f7d.tar.xz
mltk-2f58cef4822e2c28bb765369a31dfbfb67eb4f7d.zip
[vmware-common/run-virt] Fix is_on usage
-rw-r--r--core/modules/run-virt/data/opt/openslx/vmchooser/run-virt.d/setup_virtual_floppy.inc2
-rw-r--r--core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/run-virt.include2
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}" )