waybar: fix command not found when reloading (#2865)
This commit is contained in:
parent
7add9ce2e5
commit
a640dddc9a
|
@ -318,7 +318,7 @@ in {
|
|||
|
||||
Service = {
|
||||
ExecStart = "${cfg.package}/bin/waybar";
|
||||
ExecReload = "kill -SIGUSR2 $MAINPID";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
|
||||
Restart = "on-failure";
|
||||
KillMode = "mixed";
|
||||
};
|
||||
|
|
|
@ -17,9 +17,10 @@ with lib;
|
|||
assertPathNotExists home-files/.config/waybar/config
|
||||
assertPathNotExists home-files/.config/waybar/style.css
|
||||
|
||||
assertFileContent \
|
||||
home-files/.config/systemd/user/waybar.service \
|
||||
${./systemd-with-graphical-session-target.service}
|
||||
serviceFile=$(normalizeStorePaths home-files/.config/systemd/user/waybar.service)
|
||||
assertFileContent "$serviceFile" ${
|
||||
./systemd-with-graphical-session-target.service
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
WantedBy=sway-session.target
|
||||
|
||||
[Service]
|
||||
ExecReload=kill -SIGUSR2 $MAINPID
|
||||
ExecReload=/nix/store/00000000000000000000000000000000-coreutils/bin/kill -SIGUSR2 $MAINPID
|
||||
ExecStart=@waybar@/bin/waybar
|
||||
KillMode=mixed
|
||||
Restart=on-failure
|
||||
|
|
Loading…
Reference in a new issue