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:
AlephNought
2025-11-12 16:36:07 +01:00
committed by GitHub
parent 33f63da61a
commit 747a9a774e

View File

@@ -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;
};
};
};