Files
Hyprland/systemd/hyprland-session.target
T
34839b4f64 session: add disable-able systemd session target (#15776)
* add systemd session target

* session: stop graphical-session so we block, near other systemd cleanup

* session: don't start session ourselves if MANAGERPID is set

This avoids doing systemd stuff if we're already in a systemd-managed
session, like UWSM. Env vars and targets and such should already be
handled for us.

* session: store state, rather than rechecking env var at exit

---------

Co-authored-by: Dregu <dregu@dreg.us>
2026-08-22 13:57:45 +02:00

7 lines
181 B
SYSTEMD

[Unit]
Description=Hyprland session
BindsTo=graphical-session.target
Wants=graphical-session-pre.target
After=graphical-session-pre.target
PropagatesStopTo=graphical-session.target