From ebf27539061bb11e3d4be28b9149fed626235487 Mon Sep 17 00:00:00 2001 From: Khoa Vo Date: Fri, 26 Jun 2026 08:57:56 +0700 Subject: [PATCH] fix: AppImage now requires vietc-tray to start, exits with error if missing --- packaging/appimage/build-appimage.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/appimage/build-appimage.sh b/packaging/appimage/build-appimage.sh index 8883043..b0d20bf 100644 --- a/packaging/appimage/build-appimage.sh +++ b/packaging/appimage/build-appimage.sh @@ -263,10 +263,10 @@ trap cleanup_daemon EXIT INT TERM if [ -f "$HERE/usr/bin/vietc-tray" ]; then "$HERE/usr/bin/vietc-tray" "$@" else - # 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" + echo "[vietc] ERROR: vietc-tray not found. The AppImage cannot start without it." + echo "[vietc] Stopping." + kill "$DAEMON_PID" 2>/dev/null + exit 1 fi EOF chmod +x "$APPDIR/AppRun"