From 747a9a774ed63380bfa08f7f88cf0ba136183d6e Mon Sep 17 00:00:00 2001 From: AlephNought <64273472+AlephNought0@users.noreply.github.com> Date: Wed, 12 Nov 2025 16:36:07 +0100 Subject: [PATCH] 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 --- modules/services/easyeffects.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/services/easyeffects.nix b/modules/services/easyeffects.nix index a14dedd6..efe22445 100644 --- a/modules/services/easyeffects.nix +++ b/modules/services/easyeffects.nix @@ -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; }; }; };