treewide: use graphical-session.target for GUI services (#5785)
As per systemd.special(7)[0] graphical-session-pre.target is strictly for units that set up things for a graphical session. Most notably, these are usually started *before* the compositor/session is actually ready. While Home Manager's current implementation of graphical-session.target allows these units to work regardless of what systemd.special(7) specifies, other setups like ones with uwsm[1] do not allow these units to start properly. [0]: https://www.freedesktop.org/software/systemd/man/latest/systemd.special.html#graphical-session-pre.target [1]: https://github.com/Vladimir-csp/uwsm
This commit is contained in:
parent
95711f9266
commit
6c2b79403e
53 changed files with 57 additions and 55 deletions
|
|
@ -16,7 +16,7 @@
|
|||
RestartSec=5
|
||||
|
||||
[Unit]
|
||||
After=graphical-session-pre.target
|
||||
After=graphical-session.target
|
||||
Description=Blanket daemon
|
||||
PartOf=graphical-session.target
|
||||
PartOf=pipewire.service
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ Environment=PATH=@coreutils@/bin:@xdotool@/bin:@xorg.xprop@/bin
|
|||
ExecStart=@fusuma@/bin/fusuma
|
||||
|
||||
[Unit]
|
||||
After=graphical-session-pre.target
|
||||
After=graphical-session.target
|
||||
Description=Fusuma services
|
||||
PartOf=graphical-session.target
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ ExecStart=@parcellite@/bin/parcellite --no-icon
|
|||
Restart=on-abort
|
||||
|
||||
[Unit]
|
||||
After=graphical-session-pre.target
|
||||
After=graphical-session.target
|
||||
After=tray.target
|
||||
Description=Lightweight GTK+ clipboard manager
|
||||
PartOf=graphical-session.target
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Environment=PATH=@paprefs@/bin:@pavucontrol@/bin
|
|||
ExecStart=@pasystray@/bin/pasystray -g
|
||||
|
||||
[Unit]
|
||||
After=graphical-session-pre.target
|
||||
After=graphical-session.target
|
||||
After=tray.target
|
||||
Description=PulseAudio system tray
|
||||
PartOf=graphical-session.target
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@ Restart=always
|
|||
RestartSec=3
|
||||
|
||||
[Unit]
|
||||
After=graphical-session-pre.target
|
||||
After=graphical-session.target
|
||||
Description=Picom X11 compositor
|
||||
PartOf=graphical-session.target
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Restart=on-failure
|
|||
RestartSec=3
|
||||
|
||||
[Unit]
|
||||
After=graphical-session-pre.target
|
||||
After=graphical-session.target
|
||||
Description=Gammastep colour temperature adjuster
|
||||
Documentation=https://gitlab.com/chinstrap/gammastep/
|
||||
PartOf=graphical-session.target
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Restart=on-failure
|
|||
RestartSec=3
|
||||
|
||||
[Unit]
|
||||
After=graphical-session-pre.target
|
||||
After=graphical-session.target
|
||||
Description=Redshift colour temperature adjuster
|
||||
Documentation=http://jonls.dk/redshift/
|
||||
PartOf=graphical-session.target
|
||||
|
|
|
|||
|
|
@ -5,5 +5,6 @@ WantedBy=test.target
|
|||
ExecStart=@wlsunset@/bin/wlsunset -L 128.8 -T 6000 -g 0.6 -l 12.3 -t 3500
|
||||
|
||||
[Unit]
|
||||
After=graphical-session.target
|
||||
Description=Day/night gamma adjustments for Wayland compositors.
|
||||
PartOf=graphical-session.target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue