On 24.02.2024 21:02, Marc Chamberlin via openSUSE Users wrote:
Thanks Andrei for your time and responses, I will, like you did, intersperse my replies with yours...
On 2/23/24 22:05, Andrei Borzenkov wrote:
On 24.02.2024 00:46, Marc Chamberlin via openSUSE Users wrote:
Hello -
I am trying to grok how two X authority files get created and who/what is responsible for creating them.
Normally they are created by display manager that starts X server. And that is what I expect also, but the question remains, why am I not seeing the X authority files being created at /run/user/1000 on some of my OpenSuSE 15.4 systems all running with the KDE/Plasma desktop and using the SDDM display manager?
And where is it created?
I have a script for starting up the x11vnc service and it needs to find the X authority file and looks for it in one of two places. The first location it looks for it is at /run/user/1000/xauth_* and if my script finds it there then my script assumes it is running on an OpenSuSE 15.4 or later system and I use it for/via the -auth parameter of x11vnc command and the x11vnc service can be started up OK. If my script does not find the X authority file at
If you start x11vnc from within your desktop session you automatically get the correct environment.
I am starting x11vnc from a systemd service so that it is always available on remote systems that are inconvenient to access physically,
x11vnc by definition mirrors your local session X server. There is no point in starting x11vnc until you have logged in locally. At which point you can just run it in session auto-start script. If you mean something else, then please explain what you are trying to achieve. Yes, it is possible to run x11vnc before you have logged in, but in this case Xauthority obviously cannot be in user specific directory (because no user is known yet).