[X2Go-Commits] [live-build-x2go] 17/28: added '@' as allowed character in broker URL, sessionselect, and LDAP parameters

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 02:33:06 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 dc90ad39c12cc6b284df7985c06431e2e6f0abe0
Author: Stefan Baur <kontakt at baur-itcs.de>
Date:   Thu Nov 9 09:17:06 2017 +0100

    added '@' as allowed character in broker URL, sessionselect, and LDAP parameters
---
 .../lib/live/config/2900-x2go-thinclientconfig         | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig b/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
index e846424..841ff9a 100755
--- a/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
+++ b/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
@@ -91,22 +91,22 @@ xsetroot -solid "#246ed8"
 # Get X2GoConfig
 BROKERURL=\$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \
 	     awk -F'=' ' /^broker-url=/ { print \$2 }' | \
-	     tr -dc 'a-zA-Z0-9.:/?%_\-')
+	     tr -dc 'a-zA-Z0-9.:/?%_\-@')
 SESSIONSELECT=\$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \
 	         awk -F'=' ' /^session=/ { print \$2 }' | \
-	         tr -dc 'a-zA-Z0-9.:/ _\-')
+	         tr -dc 'a-zA-Z0-9.:/ _\-@')
 LDAP=\$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \
 	sed 's/^ldap=/ldap#/' | \
 	awk -F'#' ' /^ldap#/ { print \$2 }' | \
-	tr -dc 'a-zA-Z0-9.:_\-')
+	tr -dc 'a-zA-Z0-9.:_\-@')
 LDAP1=\$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \
 	 sed 's/^ldap1=/ldap1#/' | \
 	 awk -F'#' ' /^ldap1#/ { print \$2 }' | \
-	 tr -dc 'a-zA-Z0-9.:_\-')
+	 tr -dc 'a-zA-Z0-9.:_\-@')
 LDAP2=\$(sed -e 's/ \([^ ]*\)=/\n\1=/g' -e 's/\([^=]["'"'"']\) /\1\n/g' /proc/cmdline | \
 	 sed 's/^ldap2=/ldap2#/' | \
 	 awk -F'#' ' /^ldap2#/ { print \$2 }' | \
-	 tr -dc 'a-zA-Z0-9.:_\-')
+	 tr -dc 'a-zA-Z0-9.:_\-@')
 
 
 # Check for background and branding SVGs
@@ -218,6 +218,14 @@ if [ -n "\$THROTTLEVALUES" ]; then
 	fi
 fi
 
+# workaround for NX "magic pixel" being active in --thinclient mode
+while ! ps -C xdotool >/dev/null ; do
+        while [ \$(xdotool search --name . | wc -l) -lt 3 ] ; do
+                sleep 1
+        done ;
+        xdotool search . behave %@ blur windowmap
+done &
+
 eval \$THROTTLINGCOMMAND x2goclient --thinclient --no-session-edit --no-menu --maximize --add-to-known-hosts --haltbt --read-exports-from=/home/user/export \$LDAPPARAMS \$SESSIONFROM \$BACKGROUND \$BRANDING \$STARTSESSION
 XSESSION
 

--
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