diff options
Diffstat (limited to 'os-plugins/plugins/vmchooser/files/run-virt.sh')
-rw-r--r-- | os-plugins/plugins/vmchooser/files/run-virt.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index b9992c12..c0cad9d7 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -225,14 +225,22 @@ filecheck # Get all virtual machine specific stuff from the respective include file if [ -e /etc/opt/openslx/run-${virt_mach}.include ] ; then . /etc/opt/openslx/run-${virt_mach}.include - # start fvwm for player 2+ - # problems with windows opening in background + # start a windowmanager for player 2+ + # otherwise expect problems with windows opening in background if [ "${virt_mach}" = "vmware" ]; then case "$vmversion" in 2.0|6.0|2.5|6.5) - which fvwm2 >/dev/null 2>&1 && \ - ( echo "EdgeScroll 0 0" > ${redodir}/fvwm - fvwm2 -f ${redodir}/fvwm >/dev/null 2>&1 & ) + for dm in metacity kwin fvwm2 ; do + if which $dm >/dev/null 2>&1 ; then + if [ "$dm" = "fvwm2" ] ; then + echo "EdgeScroll 0 0" > ${redodir}/fvwm + fvwm2 -f ${redodir}/fvwm >/dev/null 2>&1 & + else + $dm & + fi + break + fi + done ;; esac fi |