fnott: use config.wayland.systemd.target
Also add missing `ConditionEnvironment`.
This commit is contained in:
parent
656ae5aba2
commit
14cb0c8cfa
2 changed files with 5 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue