From 7ae7422d09a2570b56962be416b01764887e6d4b Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Wed, 16 Jun 2021 19:26:48 -0400 Subject: [PATCH] Fix server auth --- modules/x11.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/x11.nix b/modules/x11.nix index 15ba5c1..f75d611 100644 --- a/modules/x11.nix +++ b/modules/x11.nix @@ -16,8 +16,9 @@ ]; extraInit = '' export XAUTHORITY=/tmp/Xauthority - export xserverauthfile=$XAUTHORITY + export xserverauthfile=/tmp/xserverauth [ -e ~/.Xauthority ] && mv -f ~/.Xauthority "$XAUTHORITY" + [ -e ~/.xserverauth*] && mv -f ~/.xserverauth* "$xserverauthfile" ''; };