summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/files/run-virt.sh
diff options
context:
space:
mode:
authorMichael Janczyk2009-11-04 17:05:51 +0100
committerMichael Janczyk2009-11-04 17:05:51 +0100
commite1d3450e7b0de150a5a21ee9db965d031c5fd7ca (patch)
tree0359136168632e7fe93a1c07e91d05ec35d31b30 /os-plugins/plugins/vmchooser/files/run-virt.sh
parentbugfix cpu cores (diff)
downloadcore-e1d3450e7b0de150a5a21ee9db965d031c5fd7ca.tar.gz
core-e1d3450e7b0de150a5a21ee9db965d031c5fd7ca.tar.xz
core-e1d3450e7b0de150a5a21ee9db965d031c5fd7ca.zip
start wm per default for vmware
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3199 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.sh26
1 files changed, 11 insertions, 15 deletions
diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh
index 08d43fe4..bcd9f82a 100644
--- a/os-plugins/plugins/vmchooser/files/run-virt.sh
+++ b/os-plugins/plugins/vmchooser/files/run-virt.sh
@@ -253,21 +253,17 @@ if [ -e ${PLUGINCONFDIR}/run-${virt_mach}.include ] ; then
# 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)
- 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
- fi
- done
- ;;
- esac
+ 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
+ fi
+ done
fi
${VIRTCMD} ${VIRTCMDOPTS}
writelog "Bye.\n"