diff options
author | Christian Rößler | 2015-09-12 15:39:09 +0200 |
---|---|---|
committer | Christian Rößler | 2015-09-12 15:39:09 +0200 |
commit | 42046ded40ab893714c67d81881e162aa13bcc5e (patch) | |
tree | f239321948a4ae1273dc7bbd7e3f1384d76b8592 /remote/modules/run-virt/data/opt/openslx/scripts/includes/start_windowmanager.inc | |
parent | [runvirt] Some cosmetics, better error handling in detect_legacy.inc (diff) | |
download | tm-scripts-42046ded40ab893714c67d81881e162aa13bcc5e.tar.gz tm-scripts-42046ded40ab893714c67d81881e162aa13bcc5e.tar.xz tm-scripts-42046ded40ab893714c67d81881e162aa13bcc5e.zip |
[runvirt], [vmware] Some more cosmetics: now include directories
Diffstat (limited to 'remote/modules/run-virt/data/opt/openslx/scripts/includes/start_windowmanager.inc')
-rw-r--r-- | remote/modules/run-virt/data/opt/openslx/scripts/includes/start_windowmanager.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/remote/modules/run-virt/data/opt/openslx/scripts/includes/start_windowmanager.inc b/remote/modules/run-virt/data/opt/openslx/scripts/includes/start_windowmanager.inc new file mode 100644 index 00000000..a3149c24 --- /dev/null +++ b/remote/modules/run-virt/data/opt/openslx/scripts/includes/start_windowmanager.inc @@ -0,0 +1,18 @@ +#################################################### +# Include: Start windowmanager for easier handling # +#################################################### + +# Some problems may arise with windows opening in background when +# using eg. vmware without a window manager. + +for dm in openbox kwin xfwm4 metacity blackbox twm 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 |