Here are two examples how the startup with Xvfb is starting. The handling of the parameter is a bit confusing because some arguments can not be nested into quotes.
Moreover the strange »\"« after the mod name is needed.
Moreover the strange »\"« after the mod name is needed.
Code:
# Start without Xvfb:
wine /home/user/Civ4/Civ4/Beyond\ the\ Sword/Civ4BeyondSword_PitBoss2014.exe mod= "PB Mod_v9"\" /ALTROOT="Z:\\home\\user\\Civ4\\PBs\\PB1"
# Same with xvfb:
xvfb-run -a -e /run/shm/xvfb.1.err --auth-file=/tmp/PB1 -s "-fbdir /run/shm/PB1 -screen 0 640x480x24" wine '/home/user/Civ4/Civ4/Beyond the Sword/Civ4BeyondSword_PitBoss2014.exe' mod= "PB Mod_v9"\" /ALTROOT="Z:\\home\\user\\Civ4\\PBs\\PB1"
# This variant with 'unbuffer' is used on our server.
xvfb-run -a -e /run/shm/xvfb.1.err --auth-file=/tmp/PB1 -s "-fbdir /run/shm/PB1
-screen 0 640x480x24" unbuffer wine '/home/user/Civ4/Civ4/Beyond the Sword/Civ4BeyondSword_PitBoss2014.exe' mod= "PB Mod_v9"\" /ALTROOT="Z:\\home\\user\\Civ4\\PBs\\PB1" | grep -v "^FTranslator::AddText\|fixme:\|err:"