WineHQ
Comments
 

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, 17:44
When I run the script, and sit there, idle (I don't enter a password, I don't hit enter):
andrew@andrew-desktop:~/Games/steam$ ./team_fortress2.sh
[sudo] password for andrew: Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.

Try doing this for yourself. Do not enter a password, do not hit enter.

I believe the problem is that the X server is not operable by the time the application launches. You can increase the sleep time in your script, to a time 3 seconds or longer (see my script). Give yourself enough time for you to enter your password (as you have sudo in front of X), and for the X server to start. The reason it works some times and not other times, is:
Sometimes you enter your password fast, and the X server starts soon enough for the application to start.
Sometimes you take too long entering your password, and the X server does not start in time for the application to "create a window".

[post new] [reply to this]

Page loaded in 0.00953 seconds.