Hallo, * Jamie Zawinski [Mon, Dec 28 2020, 06:07:55PM]: > The fact that $DISPLAY is not set at the time xscreensaver is launched is not > a good sign. The cookie error suggests that ~/.Xauthority does not exist or > is not readable. However you do appear to be running as yourself, not as > "nobody". Perhaps $HOME is set to something weird? Maybe try setting your > command to "printenv ; pwd ; xdpyinfo ; xscreensaver" and see if that > provides some clues. >
No, nothing special I am aware of. Symptoms are very strange. Once logged in, I can see some active process of xscreensaver (this is what "pidof xscreensaver" tells me). But after some seconds, this process is gone. Why? Don't know. And I see another process, what is this? 2884 0.0 0.0 5716 1064 ? SN 01:13 0:00 xscreensaver-systemd The manpage of this binary is slightly confusing. That is some kind of helper, fine, but who is supposed to run it? Xsession? Or systemd user session? It mentions "When run from ~/.xsession or equivalent" but there is no information on what is considered "equivalent" here. Anyway, I patched /usr/lib/systemd/user/xscreensaver.service to add your instructions: $ cat /usr/lib/systemd/user/xscreensaver.service [Unit] Description=XScreenSaver [Service] #ExecStart=xscreensaver ExecStart=/bin/sh -c "printenv ; pwd ; xdpyinfo ; xscreensaver" [Install] WantedBy=default.target I did daemon-reload (for --user). Net result: no visible change but the state is this now: $ systemctl --user status xscreensaver.service ● xscreensaver.service - XScreenSaver Loaded: loaded (/usr/lib/systemd/user/xscreensaver.service; enabled; vendor preset: enabled) Active: inactive (dead) Dez 30 01:13:20 whitestar systemd[2605]: xscreensaver.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing. Dez 30 01:13:20 whitestar systemd[2605]: xscreensaver.service: Cannot add dependency job, ignoring: Unit xscreensaver.service has a bad unit file setting. Now this does not make any sense anymore. Best regards, Eduard.