fnott: use config.wayland.systemd.target

Also add missing `ConditionEnvironment`.
This commit is contained in:
Thiago Kenji Okada 2024-12-31 10:27:09 +00:00 committed by Robert Helgesson
parent 656ae5aba2
commit 14cb0c8cfa
Failed to generate hash of commit
2 changed files with 5 additions and 3 deletions

View file

@ -88,8 +88,9 @@ in {
Unit = {
Description = "Fnott notification daemon";
Documentation = "man:fnott(1)";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
After = [ config.wayland.systemd.target ];
PartOf = [ config.wayland.systemd.target ];
ConditionEnvironment = "WAYLAND_DISPLAY";
};
Service = {

View file

@ -4,7 +4,8 @@ ExecStart=@fnott@/bin/fnott -c /home/hm-user/.config/fnott/fnott.ini
Type=dbus
[Unit]
After=graphical-session-pre.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY
Description=Fnott notification daemon
Documentation=man:fnott(1)
PartOf=graphical-session.target