From f359848a2fcea2e83276087d75771b9d16f700f9 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Mon, 29 Sep 2025 19:12:56 +0200 Subject: [PATCH] Update AppRun --- AppImage/scripts/AppRun | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AppImage/scripts/AppRun b/AppImage/scripts/AppRun index 7399446..e075d03 100644 --- a/AppImage/scripts/AppRun +++ b/AppImage/scripts/AppRun @@ -6,9 +6,9 @@ # Get the directory where this AppImage is mounted APPDIR="$(dirname "$(readlink -f "${0}")")" -# Set up environment export PATH="${APPDIR}/usr/bin:${PATH}" export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}" +export PYTHONPATH="${APPDIR}/usr/lib/python3/dist-packages:${APPDIR}/usr/lib/python3/site-packages:${PYTHONPATH}" # Change to the AppImage directory cd "${APPDIR}" @@ -24,6 +24,10 @@ ls -la "${APPDIR}/web/" || echo "[v0] Web directory not found" echo "[v0] Looking for index.html:" find "${APPDIR}" -name "index.html" -type f || echo "[v0] No index.html found" +echo "[v0] Python path: ${PYTHONPATH}" +echo "[v0] Checking Flask installation:" +python3 -c "import flask; print('Flask version:', flask.__version__)" 2>/dev/null || echo "[v0] Flask not found" + # Check for translation argument if [[ "$1" == "--translate" ]]; then echo "🌐 Starting ProxMenux Translation Service..."