From 3886f8db334ab63372bba93586d979f7c184a101 Mon Sep 17 00:00:00 2001 From: Philipp Mildenberger Date: Thu, 13 Aug 2020 21:34:25 +0200 Subject: [PATCH] pulseeffects: fix autostart PR #1442 --- modules/services/pulseeffects.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/services/pulseeffects.nix b/modules/services/pulseeffects.nix index af6cebe1..445b1c0a 100644 --- a/modules/services/pulseeffects.nix +++ b/modules/services/pulseeffects.nix @@ -36,10 +36,13 @@ in { systemd.user.services.pulseeffects = { Unit = { Description = "Pulseeffects daemon"; - Requires = [ "pulseaudio.service" "dbus.service" ]; - After = [ "graphical-session.target" ]; + Requires = [ "dbus.service" ]; + After = [ "graphical-session-pre.target" ]; + PartOf = [ "graphical-session.target" "pulseaudio.service" ]; }; + Install = { WantedBy = [ "graphical-session.target" ]; }; + Service = { ExecStart = "${pkgs.pulseeffects}/bin/pulseeffects --gapplication-service ${presetOpts}";