From f6f7848eaa5bdd69e03608fc2b9898eab3ce599b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 10 Jul 2019 16:52:07 +0200 Subject: [run-virt/*] Make VIRTCMDOPTS an array for space safeness --- .../opt/openslx/vmchooser/plugins/virtualbox/run-virt.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/modules/vbox-src') diff --git a/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/run-virt.include b/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/run-virt.include index 5ac7ab51..bca5c250 100755 --- a/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/run-virt.include +++ b/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/run-virt.include @@ -42,11 +42,11 @@ run_plugin() { # set the variables appropriately (several interfaces with different names) declare -rg VIRTCMD="${VBOX_BASE_DIR}/VirtualBoxVM" - declare -rg VIRTCMDOPTS="--startvm ${MACHINE_UUID} --start-running --fullscreen" + VIRTCMDOPTS+=( "--startvm" "${MACHINE_UUID}" "--start-running" "--fullscreen" ) - # set headless mode (-v off to disable vrdp) - declare -rg VIRTCMDHL="${VBOX_BASE_DIR}/VBoxHeadless" - declare -rg VIRTCMDOPTSHL="-s ${MACHINE_UUID}" + # set headless mode (-v off to disable vrdp) XXX currently not supported/used + #declare -rg VIRTCMDHL="${VBOX_BASE_DIR}/VBoxHeadless" + #declare -rg VIRTCMDOPTSHL="-s ${MACHINE_UUID}" # for debugging purposes cp "$VBOX_MACHINE_CONFIG" "/tmp/vbox-last-config.$USER" -- cgit v1.2.3-55-g7522