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:
parent
e77f4791be
commit
059e847b6e
1 changed files with 3 additions and 2 deletions
|
|
@ -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 ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue