swaync: use config.wayland.systemd.target

This commit is contained in:
Thiago Kenji Okada 2024-12-31 10:04:04 +00:00 committed by Robert Helgesson
parent d3c500a8f8
commit 4cbc8a58ab
Failed to generate hash of commit
2 changed files with 4 additions and 4 deletions

View file

@ -95,8 +95,8 @@ in {
Unit = {
Description = "Swaync notification daemon";
Documentation = "https://github.com/ErikReider/SwayNotificationCenter";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session-pre.target" ];
PartOf = [ config.wayland.systemd.target ];
After = [ config.wayland.systemd.target ];
ConditionEnvironment = "WAYLAND_DISPLAY";
};
@ -107,7 +107,7 @@ in {
Restart = "on-failure";
};
Install.WantedBy = [ "graphical-session.target" ];
Install.WantedBy = [ config.wayland.systemd.target ];
};
};
}

View file

@ -24,7 +24,7 @@
Type=dbus
[Unit]
After=graphical-session-pre.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY
Description=Swaync notification daemon
Documentation=https://github.com/ErikReider/SwayNotificationCenter