31 lines
1.1 KiB
SYSTEMD
31 lines
1.1 KiB
SYSTEMD
# 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
|
|
|