Last active
December 17, 2015 18:59
-
-
Save jhrcz/5656982 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hotfix for this issue: | |
# X11 connection rejected because of wrong authentication | |
# debug2: X11 connection uses different authentication protocol. | |
# | |
# credits go to contributors in this bugzilla entry: | |
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=49944 | |
# | |
n=$(xauth list | grep unix:"$(echo $DISPLAY | cut -d : -f 2 | cut -d . -f 1)" | sed -e 's,/unix:,:,') | |
echo "INFO: $n" | |
xauth list | grep -q "$n" && echo already-in || xauth add $n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment