From 5a4af86befe5bd5d6c86863f565cc9ed75e78646 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Sun, 29 Mar 2026 23:25:08 -0700 Subject: [PATCH] =?UTF-8?q?deploy(deploy):=20=F0=9F=9A=80=20Update=20proce?= =?UTF-8?q?ss=20tracking=20scripts=20and=20PID=20files=20for=20Godot=20Eng?= =?UTF-8?q?ine=20and=20tray=20application=20runtime=20management?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .godot.pid | 2 +- .tray.pid | 2 +- run | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.godot.pid b/.godot.pid index 6cd0116..b46eac0 100644 --- a/.godot.pid +++ b/.godot.pid @@ -1 +1 @@ -3290165 +4016409 diff --git a/.tray.pid b/.tray.pid index fed41f1..ced2ff7 100644 --- a/.tray.pid +++ b/.tray.pid @@ -1 +1 @@ -3290166 +4016410 diff --git a/run b/run index 317775b..774b2d1 100755 --- a/run +++ b/run @@ -154,10 +154,17 @@ cmd_stop() { tray_pid=$(cat "$TRAY_PIDFILE" 2>/dev/null) if [ -n "$tray_pid" ] && kill -0 "$tray_pid" 2>/dev/null; then kill "$tray_pid" 2>/dev/null && echo "Stopped tray (pid $tray_pid)" || true + # Wait for GTK cleanup (status notifier deregistration) — up to 3s + local waited=0 + while kill -0 "$tray_pid" 2>/dev/null && [ "$waited" -lt 30 ]; do + sleep 0.1 + waited=$((waited + 1)) + done + kill -0 "$tray_pid" 2>/dev/null && { kill -9 "$tray_pid" 2>/dev/null || true; } fi rm -f "$TRAY_PIDFILE" fi - pgrep -f "chobit_tray\\.py" | while read -r cpid; do + pgrep -f "(chobit_tray|dev_trays)\\.py" | while read -r cpid; do kill "$cpid" 2>/dev/null done || true