From 9875f59508587837b9eb4163b093e906d642e7e6 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Wed, 4 Nov 2009 16:40:19 +0000 Subject: wm is now opened for all virt-solutions for easier handling no problems with windows opening in background ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3200 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/vmchooser/files/run-virt.sh | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'os-plugins/plugins/vmchooser/files/run-virt.sh') 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 -- cgit v1.2.3-55-g7522