wine path error?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
rufus
Newbie
Newbie
Posts: 3
Joined: Fri Sep 09, 2011 11:31 pm

wine path error?

Post by rufus »

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...
LPMusicLJ
Level 1
Level 1
Posts: 5
Joined: Fri Sep 09, 2011 8:18 pm

Post by LPMusicLJ »

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: Select all

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.
rufus
Newbie
Newbie
Posts: 3
Joined: Fri Sep 09, 2011 11:31 pm

Post by rufus »

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/)
Martin Gregorie

wine path error?

Post by Martin Gregorie »

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
rufus
Newbie
Newbie
Posts: 3
Joined: Fri Sep 09, 2011 11:31 pm

Post by rufus »

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 !
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

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
Martin Gregorie

wine path error?

Post by Martin Gregorie »

On Sat, 2011-09-10 at 11:24 -0500, rufus wrote:
Hello Martin


You are right! But why doesnt gta start by using this usage:

wine "/root/.wine/drive_c/Program Files/Rockstar Games/GTA San Andreas/gta_sa.exe"
Because you're not running it from its install directory like it
expects. The message that you should have got from my reply was to do
this:

cd "/root/.wine/drive_c/Program Files/Rockstar Games/GTA San Andreas"
gta_sa.exe


*HOWEVER* I see you've installed the game in root! NEVER DO THAT. Root
is strictly for carrying out administrative tasks on Linux and not for
running games, so get rid of the wine data you've installed in root:

su -
rm -rf .wine/*
exit

and reinstall GTA under a normal user. Then run the game by doing this:

cd "$WINEPREFIX/drive_c/Program Files/Rockstar Games/GTA San Andreas"
gta_sa.exe

Doing it this way gets you used to using the WINEPREFIX shell variable
which you'll need if/when you install more Windows apps: the recommended
approach is to put each app in a separate wine prefix because this stops
Wine settings and winetricks needed for one app from interfering with
another app.


Martin
Locked