On 2023-03-23 01:27, Bob Rogers wrote:
From: Pit Suetterlin <> Date: Tue, 14 Mar 2023 16:50:55 +0100
Per Jessen wrote: > > I don't have anything like /run/user/$UID/xauth*, on any machine, 15.1, > 15.2, 15.3, TW. > > What do you mean by "the xauth file isn't available/linked" ? 'xauth' > says it is ~/.Xauthority and I see that everywhere.
Interesting. What's your displaymanager? My TW machine here has
woodstock:~% echo $XAUTHORITY /run/user/1000/xauth_<beep>
. . .
This thread caused me to look in my .bashrc, where I found the following snippet:
# this allows root to open windows when "su". -- rgr, 24-May-03. export XAUTHORITY=$HOME/.Xauthority
In fact, with this XAUTHORITY and the current X11 environment, root can only open emacs when "su" -- to run (e.g.) yast2, I have to ssh to my home server from within emacs and then SSH back again. (I have not figured out why emacs is so favored.) So I commented the "export" line out, and the next time I restarted the session, I could "su" in Konsole and run yast2 directly -- with an XAUTHORITY of /run/user/1000/xauth_*, as expected.
Some days it really pays to lurk . . .
Have you tried "su -" instead of "su"? -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)