commit b7697c7a68589a09b92b543201119726d1e4b592
parent dcb440281e1d44cd7c3a317a88b06902a2cb0abe
Author: torter <koubbamohamedrayan@gmail.com>
Date: Sat, 21 Nov 2026 18:36:20 +0000
slate: xdm leaves XAUTHORITY unset for ~/.Xauthority, the session lost its cookie
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/desktop/slate/share/xdm/Xsession b/desktop/slate/share/xdm/Xsession
@@ -1,7 +1,7 @@
#!/bin/sh
# xdm's session: the login shell's environment, then ~/.xsession if there is one, else slate.
# a profile that sets its own XAUTHORITY would lose the cookie xdm just made, so that one stays
-x=$XAUTHORITY
+x=${XAUTHORITY:-$HOME/.Xauthority}
[ -f /etc/profile ] && . /etc/profile
[ -f "$HOME/.profile" ] && . "$HOME/.profile"
export XAUTHORITY="$x"