service: bind to graphical-session instead of pipewire to avoid flakiness

This commit is contained in:
atagen 2026-05-24 19:44:13 +10:00
parent 0458ae0818
commit 7800c19280

View file

@ -8,6 +8,13 @@ Documentation=https://github.com/atagen/headroom
After=pipewire.service pipewire-pulse.service wireplumber.service
Requires=pipewire.service
Wants=wireplumber.service
# Tie our lifecycle to the graphical session: graphical-session.target is
# started once per login by the compositor/DE and is the conventional anchor
# for user-scope session daemons. PartOf= means we stop/restart with it.
# (pipewire.service is socket-activated and has no stable "started for the
# session" lifecycle to WantedBy=, which is why anchoring there was flaky.)
PartOf=graphical-session.target
After=graphical-session.target
ConditionUser=!@system
[Service]
@ -36,4 +43,4 @@ LimitRTTIME=200000
LimitNICE=-11
[Install]
WantedBy=pipewire.service
WantedBy=graphical-session.target