From 5ead2a3aa00327b55409f034f2498764dffbf2a6 Mon Sep 17 00:00:00 2001 From: vike <69812383+vike256@users.noreply.github.com> Date: Sat, 20 Jun 2026 10:20:51 +0000 Subject: [PATCH] Use xvfb-run instead of manual Xvfb + DISPLAY hack --- start.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/start.sh b/start.sh index 50d61fd..ecb3661 100644 --- a/start.sh +++ b/start.sh @@ -243,15 +243,11 @@ cd "$s" || { exit 1 } echo "Starting V Rising Dedicated Server with name $SERVERNAME" -echo "Trying to remove /tmp/.X0-lock" -rm /tmp/.X0-lock 2>&1 echo " " -echo "Starting Xvfb" -Xvfb :0 -screen 0 1024x768x16 & -echo "Launching wine64 V Rising" +echo "Launching wine64 V Rising via xvfb-run (auto display)" echo " " v() { - DISPLAY=:0.0 wine64 /mnt/vrising/server/VRisingServer.exe -persistentDataPath $p -serverName "$SERVERNAME" "$override_savename" -logFile "$p/$logfile" "$game_port" "$query_port" 2>&1 & + xvfb-run --auto-servernum --server-args='-screen 0 1024x768x16' wine64 /mnt/vrising/server/VRisingServer.exe -persistentDataPath $p -serverName "$SERVERNAME" "$override_savename" -logFile "$p/$logfile" "$game_port" "$query_port" 2>&1 & } v # Gets the PID of the last command