build: ship labwc-session.target systemd user unit

Add a small systemd user target modelled on miracle-wm-session.target.
It binds to graphical-session.target and orders after
graphical-session-pre.target, so systemd user services declaring
WantedBy=graphical-session.target (panels, portals, notification
daemons, ...) start and stop in sync with a labwc session.

Installed into $systemduserunitdir when the systemd dependency is
available at configure time; on systems without systemd the install
is skipped and labwc's runtime activation of the target fails
gracefully.
This commit is contained in:
Jos Dehaes 2026-04-20 15:53:34 +02:00 committed by Johan Malm
parent 5c7bfe3c67
commit d8119cb354
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,6 @@
[Unit]
Description=labwc session
Documentation=man:labwc(1) man:systemd.special(7)
BindsTo=graphical-session.target
Wants=graphical-session-pre.target
After=graphical-session-pre.target