Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions entrypoin.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"