From 028724ff4d68dc02f8f90b80b52d23920a15690d Mon Sep 17 00:00:00 2001 From: avi Date: Tue, 22 Sep 2026 12:30:37 -0500 Subject: [PATCH] =?UTF-8?q?update-app.sh:=20last-resort=20kill=20by=20exac?= =?UTF-8?q?t=20process=20name=20(pgrep=20-x)=20=E2=80=94=20the=20loose=20-?= =?UTF-8?q?f=20'shonar-desktop'=20pattern=20still=20caught=20invoker=20she?= =?UTF-8?q?lls=20outside=20the=20script's=20own=20ppid=20chain=20(persiste?= =?UTF-8?q?nt=20command=20daemons=20whose=20cmdline=20quotes=20the=20scrip?= =?UTF-8?q?t=20path)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/update-app.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/update-app.sh b/scripts/update-app.sh index 06e0c1a..7fec441 100755 --- a/scripts/update-app.sh +++ b/scripts/update-app.sh @@ -44,8 +44,10 @@ _killpat 'com.shonar.desktop.MainKt' _killpat 'shonar-desktop/bin/shonar-desktop' _killpat 'uvicorn shonar.main:app' sleep 2 -# Last resort: anything still holding a SHONAR window. -_killpat 'shonar-desktop' +# Last resort: only by exact process name — a loose 'shonar-desktop' +# pattern also matches unrelated shells whose command line merely +# mentions the app, and those get collateral SIGTERM. +for pid in $(pgrep -x 'shonar-desktop' 2>/dev/null); do kill "$pid" 2>/dev/null; done sleep 2 bin="$repo/app/build/compose/binaries/main/app/shonar-desktop/bin/shonar-desktop"