Fix dev-run
This commit is contained in:
parent
73203b3458
commit
fcd9baf067
1 changed files with 6 additions and 6 deletions
|
|
@ -31,9 +31,9 @@ sway_cleanup() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Explicitly kill any shepherd processes that might have escaped
|
# Explicitly kill any shepherd processes that might have escaped
|
||||||
kill_matching "shepherdd"
|
pkill -x "shepherdd" 2>/dev/null || true
|
||||||
kill_matching "shepherd-launcher"
|
pkill -x "shepherd-launcher" 2>/dev/null || true
|
||||||
kill_matching "shepherd-hud"
|
pkill -x "shepherd-hud" 2>/dev/null || true
|
||||||
|
|
||||||
# Remove socket
|
# Remove socket
|
||||||
if [[ -n "${SHEPHERD_SOCKET:-}" ]]; then
|
if [[ -n "${SHEPHERD_SOCKET:-}" ]]; then
|
||||||
|
|
@ -45,9 +45,9 @@ sway_cleanup() {
|
||||||
sway_kill_existing() {
|
sway_kill_existing() {
|
||||||
info "Cleaning up any existing dev instances..."
|
info "Cleaning up any existing dev instances..."
|
||||||
kill_matching "sway -c.*sway.conf"
|
kill_matching "sway -c.*sway.conf"
|
||||||
kill_matching "shepherdd"
|
pkill -x "shepherdd" 2>/dev/null || true
|
||||||
kill_matching "shepherd-launcher"
|
pkill -x "shepherd-launcher" 2>/dev/null || true
|
||||||
kill_matching "shepherd-hud"
|
pkill -x "shepherd-hud" 2>/dev/null || true
|
||||||
|
|
||||||
# Remove stale socket if it exists
|
# Remove stale socket if it exists
|
||||||
if [[ -n "${SHEPHERD_SOCKET:-}" ]] && [[ -e "$SHEPHERD_SOCKET" ]]; then
|
if [[ -n "${SHEPHERD_SOCKET:-}" ]] && [[ -e "$SHEPHERD_SOCKET" ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue