The following comments are owned by whoever posted them. WineHQ is not responsible for what they say.
RE: Terminal
by blattengel on Wednesday July 29th 2009, 10:27
Here is my script:
#!/bin/sh
sudo X :3 -ac & nvidia-settings --load-config-only
# Goto game dir (modify as needed)
cd "/media/sda1/Programs_Games/Steam/"
# Forces the system to have a break for 3 seconds, X doesn't launch instantly
sleep 3
# Launches game (modify as needed)
DISPLAY=:3 WINEDEBUG=-all wine "/media/sda1/Programs_Games/Steam/steam.exe" -applaunch 440 -console -w 1280 -h 1024 -dxlevel 81
Perhaps you need to cd into the game directory?
Steam should launch first in a new X server. After steam had loaded, TF2 should launch (my TF2 runs in fullscreen). Once you exit TF2, steam should still be there.
Oh, and I see in your script you are launching a new X server on :2, and you launch wine on :3? Is there a reason you are doing that?