diff options
Diffstat (limited to 'os-plugins/plugins/vmchooser/files')
-rw-r--r-- | os-plugins/plugins/vmchooser/files/run-virt.sh | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index bcd9f82a..308dbb0d 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -250,21 +250,19 @@ filecheck # Get all virtual machine specific stuff from the respective include file if [ -e ${PLUGINCONFDIR}/run-${virt_mach}.include ] ; then . ${PLUGINCONFDIR}/run-${virt_mach}.include - # start a windowmanager for player 2+ - # otherwise expect problems with windows opening in background - if [ "${virt_mach}" = "vmware" ]; then - 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 >/dev/null 2>&1 & - fi - break + # start a windowmanager for easier handling + # (expect problems /w windows opening in background /w vmware without wm) + for dm in xfwm4 metacity openbox blackbox 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 >/dev/null 2>&1 & fi - done - fi + break + fi + done ${VIRTCMD} ${VIRTCMDOPTS} writelog "Bye.\n" exit 0 |