diff options
author | Michael Janczyk | 2009-11-04 17:40:19 +0100 |
---|---|---|
committer | Michael Janczyk | 2009-11-04 17:40:19 +0100 |
commit | 9875f59508587837b9eb4163b093e906d642e7e6 (patch) | |
tree | ac0293248d3f646c95434b967039b1e26f3c8775 /os-plugins/plugins/vmchooser/files/run-virt.sh | |
parent | start wm per default for vmware (diff) | |
download | core-9875f59508587837b9eb4163b093e906d642e7e6.tar.gz core-9875f59508587837b9eb4163b093e906d642e7e6.tar.xz core-9875f59508587837b9eb4163b093e906d642e7e6.zip |
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
Diffstat (limited to 'os-plugins/plugins/vmchooser/files/run-virt.sh')
-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 |