fix: remove wine errors
This commit is contained in:
@@ -6,10 +6,18 @@ set -e
|
|||||||
DISPLAY_NUM=$((SERVER_PORT % 1000 + 100))
|
DISPLAY_NUM=$((SERVER_PORT % 1000 + 100))
|
||||||
export DISPLAY=:${DISPLAY_NUM}
|
export DISPLAY=:${DISPLAY_NUM}
|
||||||
|
|
||||||
|
# Wine Staging looks for PulseAudio via XDG_RUNTIME_DIR. There is no audio
|
||||||
|
# in this container, so point it at a valid (empty) directory to silence
|
||||||
|
# the "XDG_RUNTIME_DIR is invalid" errors.
|
||||||
|
export XDG_RUNTIME_DIR=/tmp/runtime-${SERVER_PORT}
|
||||||
|
mkdir -p "${XDG_RUNTIME_DIR}"
|
||||||
|
|
||||||
# Clean up any stale X lock from a previous container run.
|
# Clean up any stale X lock from a previous container run.
|
||||||
rm -f /tmp/.X${DISPLAY_NUM}-lock /tmp/.X11-unix/X${DISPLAY_NUM} 2>/dev/null || true
|
rm -f /tmp/.X${DISPLAY_NUM}-lock /tmp/.X11-unix/X${DISPLAY_NUM} 2>/dev/null || true
|
||||||
|
|
||||||
Xvfb ${DISPLAY} -screen 0 1024x768x16 -nolisten tcp &
|
# Raise Xvfb's client limit — Wine Staging opens more X11 connections than
|
||||||
|
# the default 256, causing "Maximum number of clients reached" spam.
|
||||||
|
Xvfb ${DISPLAY} -screen 0 1024x768x16 -nolisten tcp -maxclients 512 &
|
||||||
XVFB_PID=$!
|
XVFB_PID=$!
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
|
|||||||
Reference in New Issue
Block a user