From cc91388e0caaf34fd01055aa93a2eb436ee7ae88 Mon Sep 17 00:00:00 2001 From: kkosik Date: Tue, 29 Jul 2025 14:23:50 -0400 Subject: [PATCH] Create entrypoin.sh --- entrypoin.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 entrypoin.sh 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 "$@"