hello there i?ve got wine version 1.3.26 on my gentoo machine installed. My problem is I cannot start any game/program by using the wine + path parameters. For example when i want to start gta sa: my normal usage is: wine "c:\programme\rockstar games\gta san andreas\gta_sa.exe" But nothing happens... But if i change direct into gta?s directory, i can start gta with this usage: wine gta_sa.exe and it runs perfect! How could it be? Sorry for my poor english...
> my normal usage is: > wine "c:\programme\rockstar games\gta san andreas\gta_sa.exe"I think you can drop the quotation marks ("), and you use escape characters for the spaces. So it would look something like Code: wine drive_c/programme/rockstar\ games/gta\ san\ andreas/gta_sa.exe backspace is not really used in Linux, but here it is used to make the system understand that your next character is special. In this case it is a space. ("\ "). Otherwise, the system would think that you want to provide an argument after the space. Also note that all your backslashes were converted to normal forward slashes. Backslashes only went before the spaces. No quotes are required around the entire string.
hi thanks for reply. I cannot drop the quotation marks, cause there are a few spaces at the folders.... I think the syntax i correct, there?s no error message. I start form console my screen is setting the resolution (800x600x32) and nothing happens. I can use this syntax to change into gta?s directory: cd "/root/.wine/drive_c/Program Files/Rockstar Games/GTA San Andreas" then : wine gta_sa.exe and the game starts. If i use this syntax: wine "/root/.wine/drive_c/Program Files/Rockstar Games/GTA San Andreas/gta_sa.exe" the game dosen?t start! So we can say the game starts when i?m in it?s directory (/GTA San Andreas/)
On Fri, 2011-09-09 at 23:54 -0500, LPMusicLJ wrote:> > my normal usage is: > > wine "c:\programme\rockstar games\gta san andreas\gta_sa.exe" > > > I think you can drop the quotation marks ("), and you use escape > characters for the spaces. So it would look something like >That is true, but nor relevant for the OP. To the OP: there is a difference between Windows and Linux (i.e. UNIX-style) operating systems in where programs expect to be run. In Linux we expect to put executables in one or two libraries (/bin, /usr/bin, /usr/local/bin and sometimes $HOME/bin) and to run them in the directory (the pwd, present working directory) that contains the data files the program will use. Similarly, the program expects to find config files in /etc or /usr/local/etc or the pwd. However, Windows is different: each app is usually installed in a separate directory along with its config files, help text, etc. The only common library is c:\winnt\system where the support DLLs written by Microsoft are found. The app is written to be run in its installation directory and to look elsewhere for data files. This is why you get the difference in the way you should run apps: Windows: cd X:\directory\where\app\was\installed myapp.exe Y:\MyData\data.file Linux: cd $HOME/directory/mydata myapp data.file Martin
Hello Martin You are right! But why doesn?t gta start by using this usage: wine "/root/.wine/drive_c/Program Files/Rockstar Games/GTA San Andreas/gta_sa.exe" It?s definitly the correct path. I start from console and there?s no error message.... The screen set the right resolution and then i get a blue screen and nothing happens! I stop wine by strg c !
rufus wrote:> You are right! But why doesn?t gta start by using this usage: > > wine "/root/.wine/drive_c/Program Files/Rockstar Games/GTA San Andreas/gta_sa.exe" > >Because apparently you installed the game as root, and now only root can run it. Delete that wineprefix and install your game as a normal user. http://wiki.winehq.org/FAQ#run_as_root