From 4067ca1ffb6425b8597eafb63a84b171e0192d2b Mon Sep 17 00:00:00 2001 From: Sandro Marques Date: Sat, 27 Dec 2025 14:49:54 +0900 Subject: [PATCH] easyeffects: Fix race condition on Wayland session startup Add systemd service ordering dependencies to prevent EasyEffects from starting before the Wayland compositor is ready. **Problem:** EasyEffects would crash during login with "Failed to create wl_display (No such file or directory)" if started before the Wayland display server was fully initialized. **Solution:** Declaring the "After" property ensures EasyEffects waits for the graphical session to be fully ready. The "PartOf" properly stops EasyEffects when logging out. Got the tip from https://github.com/wwmm/easyeffects/issues/1310. Tested on NixOS 25.11 (Xantusia, 20251223.76701a1) and Home Manager 25.11 (0999ed8) with GNOME 49 on Wayland. --- modules/services/easyeffects.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/services/easyeffects.nix b/modules/services/easyeffects.nix index a56c332cb..ca15217cc 100644 --- a/modules/services/easyeffects.nix +++ b/modules/services/easyeffects.nix @@ -117,6 +117,8 @@ in systemd.user.services.easyeffects = { Unit = { Description = "Easyeffects daemon"; + After = [ "graphical-session.target" ]; + PartOf = [ "graphical-session.target" ]; }; Install.WantedBy = [ "graphical-session.target" ];