diff --git a/scripts/run.sh b/scripts/run.sh index c4973a2..1440ce6 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -3,7 +3,7 @@ # Builds (if needed) and runs the application PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -BUILD_OUTPUT="$PROJECT_ROOT/VTPlayer" +BUILD_OUTPUT="$PROJECT_ROOT/vt_player" echo "════════════════════════════════════════════════════════════════" echo " VT Player - Run Script" @@ -28,5 +28,12 @@ echo "🚀 Starting VT Player..." echo "════════════════════════════════════════════════════════════════" echo "" +# Optional software rendering fallback: +# Default to software (avoid GLX errors); set VTPLAYER_HW=1 to force hardware. +if [ "$VTPLAYER_HW" != "1" ]; then + export FYNE_SW_CANVAS=1 + export LIBGL_ALWAYS_SOFTWARE=1 +fi + # Run the application "$BUILD_OUTPUT" "$@"