From fcd9baf067a9cfac143715de267c1c0768fe943f Mon Sep 17 00:00:00 2001 From: Albert Armea Date: Thu, 1 Jan 2026 18:07:11 -0500 Subject: [PATCH] Fix dev-run --- scripts/lib/sway.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/lib/sway.sh b/scripts/lib/sway.sh index 2aeb900..9289fb2 100755 --- a/scripts/lib/sway.sh +++ b/scripts/lib/sway.sh @@ -31,9 +31,9 @@ sway_cleanup() { fi # Explicitly kill any shepherd processes that might have escaped - kill_matching "shepherdd" - kill_matching "shepherd-launcher" - kill_matching "shepherd-hud" + pkill -x "shepherdd" 2>/dev/null || true + pkill -x "shepherd-launcher" 2>/dev/null || true + pkill -x "shepherd-hud" 2>/dev/null || true # Remove socket if [[ -n "${SHEPHERD_SOCKET:-}" ]]; then @@ -45,9 +45,9 @@ sway_cleanup() { sway_kill_existing() { info "Cleaning up any existing dev instances..." kill_matching "sway -c.*sway.conf" - kill_matching "shepherdd" - kill_matching "shepherd-launcher" - kill_matching "shepherd-hud" + pkill -x "shepherdd" 2>/dev/null || true + pkill -x "shepherd-launcher" 2>/dev/null || true + pkill -x "shepherd-hud" 2>/dev/null || true # Remove stale socket if it exists if [[ -n "${SHEPHERD_SOCKET:-}" ]] && [[ -e "$SHEPHERD_SOCKET" ]]; then