Add xvfb virtual framebuffer for T7x Wine display requirement

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Amos 2026-03-29 21:08:27 +01:00
parent 740421cb35
commit 01db25a031
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View file

@ -14,7 +14,8 @@ RUN apt-get install -y --no-install-recommends \
gpg \
ca-certificates \
tar \
python3
python3 \
xvfb
# Add WineHQ repository key
RUN mkdir -pm755 /etc/apt/keyrings && \

View file

@ -97,6 +97,8 @@ if [[ -n "${ALTER_EXTRA_ARGS}" ]]; then
fi
# --- Step 6: Launch the T7x Server ---
# T7x requires a display even in dedicated/headless mode, so use xvfb-run
# to provide a virtual framebuffer for Wine
echo "Starting T7x Server: ${ALTER_SERVER_NAME}"
echo "EXECUTING: wine t7x.exe ${CMD_ARGS[@]}"
exec wine t7x.exe "${CMD_ARGS[@]}"
echo "EXECUTING: xvfb-run wine t7x.exe ${CMD_ARGS[@]}"
exec xvfb-run wine t7x.exe "${CMD_ARGS[@]}"