[X2Go-Commits] [x2goserver] 01/01: Export XAUTHORITY env var in x2goruncommand to enable privilege upgrade for applications started via pkexec. (Fixes: #458).

git-admin at x2go.org git-admin at x2go.org
Wed Aug 20 11:11:20 CEST 2014


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

x2go pushed a commit to branch release/4.0.1.x
in repository x2goserver.

commit 421d42addb2dc10ce80644eb8a3ab30ca7a78dba
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Aug 20 11:11:09 2014 +0200

    Export XAUTHORITY env var in x2goruncommand to enable privilege upgrade for applications started via pkexec. (Fixes: #458).
---
 debian/changelog              |    2 ++
 x2goserver/bin/x2goruncommand |    1 +
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index fdf038c..a56c63b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -71,6 +71,8 @@ x2goserver (4.0.1.16-0x2go1) UNRELEASED; urgency=low
       #574).
     - Abort session if env var $HOME is not set or if $HOME contains non-ASCII
       characters. (Fixes: #397).
+    - Export XAUTHORITY env var in x2goruncommand to enable privilege upgrade
+      for applications started via pkexec. (Fixes: #458).
   * debian/control, x2goserver.spec:
     + Update versioned D: x2goagent (>= 3.5.0.25). This assures that X2Go
       works with poly-instantiated /tmp directories.
diff --git a/x2goserver/bin/x2goruncommand b/x2goserver/bin/x2goruncommand
index b9b0c16..f324d26 100755
--- a/x2goserver/bin/x2goruncommand
+++ b/x2goserver/bin/x2goruncommand
@@ -32,6 +32,7 @@ X2GO_LIB_PATH="$(x2gopath libexec)";
 "$X2GO_LIB_PATH/x2gosyslog" "$0" "info" "$(basename $0) called with options: $@"
 
 export DISPLAY
+export XAUTHORITY=${XAUTHORITY:-"$HOME/.Xauthority"}
 export X2GO_AGENT_PID
 export X2GO_SESSION
 cmd=`echo $cmd |sed 's/X2GO_SPACE_CHAR/ /g'`

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


More information about the x2go-commits mailing list