From 3ea380f6dfe2d0673f939bdf52c768563ec69360 Mon Sep 17 00:00:00 2001 From: Khoa Vo Date: Fri, 26 Jun 2026 08:50:39 +0700 Subject: [PATCH] fix: AppRun exits cleanly when no tray binary available --- packaging/appimage/build-appimage.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/appimage/build-appimage.sh b/packaging/appimage/build-appimage.sh index 9f9e30a..8883043 100644 --- a/packaging/appimage/build-appimage.sh +++ b/packaging/appimage/build-appimage.sh @@ -263,8 +263,10 @@ trap cleanup_daemon EXIT INT TERM if [ -f "$HERE/usr/bin/vietc-tray" ]; then "$HERE/usr/bin/vietc-tray" "$@" else - echo "[vietc] Daemon running in foreground. Press Ctrl+C to stop." - wait "$DAEMON_PID" + # No tray — daemon is already running in background, exit AppImage + echo "[vietc] Daemon started (PID $DAEMON_PID). No tray icon (vietc-tray not built)." + echo "[vietc] The daemon will keep running in the background." + echo "[vietc] To stop it: pkill -x vietc" fi EOF chmod +x "$APPDIR/AppRun"