Default to software canvas and fix binary name in run.sh
This commit is contained in:
parent
8815f69fe8
commit
142d2f1383
|
|
@ -3,7 +3,7 @@
|
||||||
# Builds (if needed) and runs the application
|
# Builds (if needed) and runs the application
|
||||||
|
|
||||||
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||||
BUILD_OUTPUT="$PROJECT_ROOT/VTPlayer"
|
BUILD_OUTPUT="$PROJECT_ROOT/vt_player"
|
||||||
|
|
||||||
echo "════════════════════════════════════════════════════════════════"
|
echo "════════════════════════════════════════════════════════════════"
|
||||||
echo " VT Player - Run Script"
|
echo " VT Player - Run Script"
|
||||||
|
|
@ -28,5 +28,12 @@ echo "🚀 Starting VT Player..."
|
||||||
echo "════════════════════════════════════════════════════════════════"
|
echo "════════════════════════════════════════════════════════════════"
|
||||||
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
|
# Run the application
|
||||||
"$BUILD_OUTPUT" "$@"
|
"$BUILD_OUTPUT" "$@"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user