Default to software canvas and fix binary name in run.sh

This commit is contained in:
Stu 2025-12-09 18:28:57 -05:00
parent 8815f69fe8
commit 142d2f1383

View File

@ -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" "$@"