[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 7ae480f81e481bdcafb6e837ba808c0604a2ac3e
Author: Robert Ransom <rransom.8774@xxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits