Order the systemd services after graphical-session.target

This fixes services in Wayland session where WAYLAND_DISPLAY is only
imported into the systemd user instance environment after
graphical-session.target is reached (such as GNOME).
This commit is contained in:
Max Gautier 2023-07-29 10:37:26 +02:00
parent 34520aa16e
commit 14ea4322fe
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View file

@ -8,6 +8,7 @@ Requires=%N.socket
Description=Foot terminal server mode
Documentation=man:foot(1)
PartOf=graphical-session.target
After=graphical-session.target
[Install]
WantedBy=graphical-session.target

View file

@ -3,6 +3,7 @@ ListenStream=%t/foot.sock
[Unit]
PartOf=graphical-session.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY
[Install]