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 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-18 12:58:48 +01:00
parent e77f4791be
commit 059e847b6e

View file

@ -224,8 +224,9 @@ in
--show-results-immediately true \ --show-results-immediately true \
--hide-plugin-info true \ --hide-plugin-info true \
--close-on-click true) --close-on-click true)
# Restart the daemon service. # Restart the daemon service (reset-failed clears the start-rate limiter).
systemctl --user start anyrun.service 2>/dev/null || true systemctl --user reset-failed anyrun.service 2>/dev/null
systemctl --user start anyrun.service 2>/dev/null
case "$choice" in case "$choice" in
*Lock) ${pkgs.hyprlock}/bin/hyprlock ;; *Lock) ${pkgs.hyprlock}/bin/hyprlock ;;
*Logout) hyprctl dispatch exit ;; *Logout) hyprctl dispatch exit ;;