Skip to content

Commit

Permalink
ssh -X: always use ~/.Xauthority #81
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Oct 20, 2018
1 parent d09cbd4 commit 9c0eeef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -5050,7 +5050,8 @@ check_hostxenv() { # check environment variables for host X display
# get cookie from host display
XAUTHORITY=${XAUTHORITY:-}
[ -z "$XAUTHORITY" ] && XAUTHORITY="$(systemctl --user show-environment | grep XAUTHORITY= | cut -d= -f2)"
[ -z "$XAUTHORITY" ] && [ -e "$Hostuserhome/.Xauthority" ] && XAUTHORITY="$Hostuserhome/.Xauthority"
[ -z "$XAUTHORITY" ] && [ -e "$Hostuserhome/.Xauthority" ] && XAUTHORITY="$Hostuserhome/.Xauthority"
[ "$Hostssh" = "yes" ] && [ -e "$Hostuserhome/.Xauthority" ] && XAUTHORITY="$Hostuserhome/.Xauthority"
[ "${XAUTHORITY:-}" ] && {
$Mksu "$Xauthexe -i -f ${XAUTHORITY:-} nlist $Hostdisplay 2>/dev/null | rmcr | $Xauthexe -f $Hostxauthority nmerge - 2>/dev/null"
chown $Hostuser $Hostxauthority
Expand Down Expand Up @@ -6558,7 +6559,6 @@ todo() {
# further checks of pam.d
# --internet to allow internet access, otherwise --net=none?
# --group-add: further checks? mismatch messagebus-101-systemd-journal
# option --pull to force 'docker pull'? Keeps image up to date with docker hub.

# MSYS2/Cygwin/WSL:
# needs test:
Expand Down

0 comments on commit 9c0eeef

Please sign in to comment.