diff --git a/entrypoin.sh b/entrypoin.sh new file mode 100644 index 0000000..ce620e2 --- /dev/null +++ b/entrypoin.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Set up environment +export DISPLAY=:99 +XAUTHORITY=/home/xclient/.Xauthority +export XAUTHORITY + +# Create .Xauthority file +mkdir -p $(dirname $XAUTHORITY) +touch $XAUTHORITY +xauth add $DISPLAY . $(mcookie) + +# Start Xvfb in background +Xvfb $DISPLAY -screen 0 1024x768x16 & + +# Small delay to let Xvfb start +sleep 2 + +# Run the app +exec "$@"