mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
easyeffects: Fix service hanging on system shutdown (#8145)
* easyeffects: Fix service hanging on system shutdown * Make systemd take dependencies automatically from dbus service instead of setting them manually * Add TimeoutStopSpec for 10 seconds
This commit is contained in:
@@ -121,12 +121,6 @@ in
|
||||
systemd.user.services.easyeffects = {
|
||||
Unit = {
|
||||
Description = "Easyeffects daemon";
|
||||
Requires = [ "dbus.service" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
PartOf = [
|
||||
"graphical-session.target"
|
||||
"pipewire.service"
|
||||
];
|
||||
};
|
||||
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
@@ -134,8 +128,12 @@ in
|
||||
Service = {
|
||||
ExecStart = "${cfg.package}/bin/easyeffects --gapplication-service ${presetOpts}";
|
||||
ExecStop = "${cfg.package}/bin/easyeffects --quit";
|
||||
Type = "dbus";
|
||||
BusName = "com.github.wwmm.easyeffects";
|
||||
KillMode = "mixed";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
TimeoutStopSec = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user