Files
sql-ai-gui/scripts/sql-ai-gui
T
2026-04-08 13:57:52 +02:00

15 lines
401 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
APP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# Wayland bevorzugen (Hyprland)
export QT_QPA_PLATFORM="${QT_QPA_PLATFORM:-wayland}"
# Optional: Wenn du einen venv nutzt
if [[ -x "$APP_DIR/.venv/bin/python" ]]; then
exec "$APP_DIR/.venv/bin/python" "$APP_DIR/sql_ai_gui_local_ollama.py"
else
exec python "$APP_DIR/sql_ai_gui_local_ollama.py"
fi