From 059e847b6efa53310cab8402bc931dc6ad4e2edf Mon Sep 17 00:00:00 2001 From: rope Date: Mon, 18 May 2026 12:58:48 +0100 Subject: [PATCH] anyrun: reset-failed before daemon restart in power menu systemctl stop/start in quick succession hits the start-rate limiter, leaving the daemon in a failed state. Reset the failure counter before restarting. Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 0f06d17..76ac68a 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -224,8 +224,9 @@ in --show-results-immediately true \ --hide-plugin-info true \ --close-on-click true) - # Restart the daemon service. - systemctl --user start anyrun.service 2>/dev/null || true + # Restart the daemon service (reset-failed clears the start-rate limiter). + systemctl --user reset-failed anyrun.service 2>/dev/null + systemctl --user start anyrun.service 2>/dev/null case "$choice" in *Lock) ${pkgs.hyprlock}/bin/hyprlock ;; *Logout) hyprctl dispatch exit ;;