[X2Go-Commits] [live-build-x2go] 09/09: Changed openbox spawn/terminate conditions: only exactly 3 windows mean that openbox should be terminated. Any less, and we're in "no running session yet" state, any more, and we have a running session, and e.g. a connection loss popup.

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 03:24:21 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/openbox-magic-pixel-workaround
in repository live-build-x2go.

commit 481d64eaf40bc8ddd328ed16694f01e0d1879350
Author: Stefan Baur <kontakt at baur-itcs.de>
Date:   Tue Nov 14 09:02:57 2017 +0100

    Changed openbox spawn/terminate conditions: only exactly 3 windows mean that openbox should be terminated. Any less, and we're in "no running session yet" state, any more, and we have a running session, and e.g. a connection loss popup.
---
 config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig b/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
index a1d3c1a..f2865f3 100755
--- a/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
+++ b/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
@@ -231,10 +231,10 @@ if grep 'nomagicpixel=2' /proc/cmdline ; then
 	done &
 elif grep 'nomagicpixel=1' /proc/cmdline ; then
        while true ; do
-               while [ \$(xdotool search --name . | wc -l) -lt 3 ] && ! ps -C openbox >/dev/null ; do
+               while [ \$(xdotool search --name . | wc -l) -ne 3 ] && ! ps -C openbox >/dev/null ; do
                        openbox &
                done
-               while [ \$(xdotool search --name . | wc -l) -gt 2 ] && ps -C openbox >/dev/null ; do
+               while [ \$(xdotool search --name . | wc -l) -eq 3 ] && ps -C openbox >/dev/null ; do
                        killall openbox
                done
        done &

--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list