create mango-session.target
This commit is contained in:
parent
207dac004e
commit
e7b71de3d8
14 changed files with 137 additions and 8 deletions
30
user/mango-session.target
Normal file
30
user/mango-session.target
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# User target for GUI applets that must start only after mango has initialized
|
||||
# a real Wayland session and exported session environment variables to
|
||||
# systemd --user. We explicitly start this target from mango config once per
|
||||
# login, which avoids the default.target race where WAYLAND_DISPLAY is not yet
|
||||
# present in the user manager environment.
|
||||
#
|
||||
# Why this exists:
|
||||
# - default.target starts too early for Wayland-dependent desktop applets
|
||||
# - applets like waybar/swww/blueman then block in ExecStartPre and may timeout
|
||||
# - starting one dedicated target after environment import is deterministic
|
||||
#
|
||||
# What depends on this:
|
||||
# - waybar.service
|
||||
# - swww.service
|
||||
# - blueman-applet.service
|
||||
#
|
||||
# Start path:
|
||||
# - mango exec-once runs:
|
||||
# systemctl --user import-environment ...
|
||||
# dbus-update-activation-environment --systemd ...
|
||||
# systemctl --user start mango-session.target
|
||||
#
|
||||
# Stop path:
|
||||
# - services are PartOf=mango-session.target, so stopping the target cleanly
|
||||
# stops all attached applets.
|
||||
[Unit]
|
||||
Description=Mango Session Target
|
||||
Documentation=man:systemd.target(5)
|
||||
RefuseManualStop=no
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue