summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/files/run-virt.sh
diff options
context:
space:
mode:
authorMichael Janczyk2009-03-09 19:02:02 +0100
committerMichael Janczyk2009-03-09 19:02:02 +0100
commit2a3a857d9c208a4c61cee8a054ae8db1b480b992 (patch)
tree1bffd45652c14add1a6d40ce2b12d404d82592a4 /os-plugins/plugins/vmchooser/files/run-virt.sh
parent * quickfix for broken rpm2cpio bzip2 support (diff)
downloadcore-2a3a857d9c208a4c61cee8a054ae8db1b480b992.tar.gz
core-2a3a857d9c208a4c61cee8a054ae8db1b480b992.tar.xz
core-2a3a857d9c208a4c61cee8a054ae8db1b480b992.zip
renamed and xml template and added xml comments
start fvwm when vmplayer2+ is userd, otherwise windows start in the background x=0 and y=0 upper left corner :( git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2702 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.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh
index 5c14e591..65e61499 100644
--- a/os-plugins/plugins/vmchooser/files/run-virt.sh
+++ b/os-plugins/plugins/vmchooser/files/run-virt.sh
@@ -217,6 +217,17 @@ 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
+ 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 & )
+ ;;
+ esac
+ fi
${VIRTCMD} ${VIRTCMDOPTS}
writelog "Bye.\n"
exit 0