On Sun, Jan 10, 2021 at 12:44 PM Michael Biebl wrote: > Negating @system might work. > Something like ConditionUser=!@system, but untested.
Thanks! I was just about to suggest this myself after searching around for this. (https://www.freedesktop.org/software/systemd/man/systemd.unit.html) I also wonder if PartOf=graphical-session.target would make sure the service is stopped when the X sessions stops. (https://www.freedesktop.org/software/systemd/man/systemd.special.html#) And maybe we should replace WantedBy=default.target by more specific DEs, like WantedBy=xfce-session.target. I'd expect e.g. Gnome to start its own screensaver by default. I also see that the systemd user task is per-user, not per-session. Wonder what happens if a user log in twice... "Problematic" according to https://systemd.io/DESKTOP_ENVIRONMENTS/ Tormod