[tor-commits] [torbrowser/master] [Linux] Document why we need to set XAUTHORITY in this script

erinn at torproject.org erinn at torproject.org
Sun Oct 23 23:18:27 UTC 2011


commit 7ae480f81e481bdcafb6e837ba808c0604a2ac3e
Author: Robert Ransom <rransom.8774 at gmail.com>
Date:   Tue Aug 23 01:55:32 2011 -0400

    [Linux] Document why we need to set XAUTHORITY in this script
    
    Otherwise, some GDM user who doesn't know why it needs to be set here
    will remove this chunk of script someday.
    (cherry picked from commit 34cdd1dcc58adc55e04549698349c060f6378648)
---
 src/RelativeLink/RelativeLink.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/RelativeLink/RelativeLink.sh b/src/RelativeLink/RelativeLink.sh
index 33961c9..09013a9 100755
--- a/src/RelativeLink/RelativeLink.sh
+++ b/src/RelativeLink/RelativeLink.sh
@@ -14,6 +14,9 @@ if [ $1 ]; then
 	printf "\nDebug enabled.\n\n"
 fi
 
+# If XAUTHORITY is unset, set it to its default value of $HOME/.Xauthority
+# before we change HOME below.  (See xauth(1) and #1945.)  XDM and KDM rely
+# on applications using this default value.
 if [ -z "$XAUTHORITY" ]; then
 	XAUTHORITY=~/.Xauthority
 	export XAUTHORITY





More information about the tor-commits mailing list