Axel Beckert hat am Mi 18. Sep, 02:15 (+0200) geschrieben: > Jörg Sommer wrote: > > maybe, could you ship this unit file as > > /usr/lib/systemd/user/unclutter.service? > > This runs unclutter independent of the window manager > > Well, /etc/X11/Xsession.d/90unclutter is also independent of the > window manager... > > So I assume that -- if we include your file -- > /etc/X11/Xsession.d/90unclutter will need to check if its running > under systemd and if it discovers that it is running under systemd, > then do nothing? (BTW: What's the best way to do such a check?)
The best way should be checking for the $MANAGERPID (see systemd.exec(5)). To support non-systemd systems it would be necessary to have the 90unclutter script. If there's such a check in 90unclutter, it is possible to install the unit as disabled and run `systemctl --user start unclutter` when systemd is available. > > and it aggregates all log messages via journal. > > So far that's the only advantage I see of that .service file. Another advantage would the possibility to restart unclutter after updates of system libraries. If it aligns this way, *needrestart* shows the unclutter unit, when it needs to be restarted after updates. The systemd unit also provides the easy enforcement of some security constraints. I didn't check it, but `NoNewPrivileges=true` and `ProtectHome=read-only` might be working. Kind regards, Jörg -- Freiheit heißt, die Wahl zu haben, wessen Sklave man ist.
signature.asc
Description: PGP signature