Closed equwal closed 1 year ago
As XAUTHORITY
is a documented environment under X11/Xorg it is the responsibility of programs to fix breakage caused by not properly honouring it.
However if you are personally struggling with unfixable software you can workaround this by linking (symbolic or hard) "$XAUTHORITY"
to "$HOME"/.Xauthority
via sxrc
as the environment is available at that point. E.g.
# sxrc
ln -sf -- "$XAUTHORITY" "$HOME"/.Xauthority
For something written as an academic exercise, to be as trivial as possible, I wanted to avoid the duty of defensive programming that supplicates the poor design of other programs.
Ugly as it is, it's up to X to decide where to put this. I found this issue when trying to use firejail. I suspect breakages might be possible when trying to forward X over a socket too. To avoid this kind of breakage I suggest leaving it at "$HOME/.Xauthority".
It is nice to put Xauthority in the data dir where it really should go, but it predates that standard.