mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 00:17:10 +00:00
waybar: fix systemd service
The current definition makes waybar wait for dbus.service, but that never happens because dbus.service is started on demand by dbus.socket. Per systemd docs: https://www.freedesktop.org/software/systemd/man/systemd.service.html#Implicit%20Dependencies - Services with Type=dbus set automatically acquire dependencies of type Requires= and After= on dbus.socket. - Socket activated services are automatically ordered after their activating .socket units via an automatic After= dependency. Services also pull in all .socket units listed in Sockets= via automatic Wants= and After= dependencies. Removing Requisite/After makes the service properly start for me, simply specifying Type=dbus is enough. See #1370
This commit is contained in:
parent
0027b0e76b
commit
0654364426
2 changed files with 0 additions and 4 deletions
|
@ -356,8 +356,6 @@ in {
|
||||||
"Highly customizable Wayland bar for Sway and Wlroots based compositors.";
|
"Highly customizable Wayland bar for Sway and Wlroots based compositors.";
|
||||||
Documentation = "https://github.com/Alexays/Waybar/wiki";
|
Documentation = "https://github.com/Alexays/Waybar/wiki";
|
||||||
PartOf = [ "graphical-session.target" ];
|
PartOf = [ "graphical-session.target" ];
|
||||||
Requisite = [ "dbus.service" ];
|
|
||||||
After = [ "dbus.service" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
|
|
|
@ -9,8 +9,6 @@ RestartSec=1sec
|
||||||
Type=dbus
|
Type=dbus
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
After=dbus.service
|
|
||||||
Description=Highly customizable Wayland bar for Sway and Wlroots based compositors.
|
Description=Highly customizable Wayland bar for Sway and Wlroots based compositors.
|
||||||
Documentation=https://github.com/Alexays/Waybar/wiki
|
Documentation=https://github.com/Alexays/Waybar/wiki
|
||||||
PartOf=graphical-session.target
|
PartOf=graphical-session.target
|
||||||
Requisite=dbus.service
|
|
||||||
|
|
Loading…
Reference in a new issue