[X2Go-Commits] [live-build-x2go] 09/26: 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
Wed Jan 24 18:31:49 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch feature/openbox-stretch
in repository live-build-x2go.
commit 0b441dc61b3694978bc194f0184f27b0a2f084e5
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 82a9b16..89c1cb8 100755
--- a/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
+++ b/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
@@ -242,10 +242,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 /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
More information about the x2go-commits
mailing list