STRANGE problem when loading a .exe!

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
fescobar
Newbie
Newbie
Posts: 3
Joined: Sat Sep 13, 2008 12:43 pm

STRANGE problem when loading a .exe!

Post by fescobar »

Ok, so here's the deal:
I downloaded a game with no installer, just have to execute the .exe to run.
So when i double click the .exe in Nautilus, the game runs perfectly, but when I execute the game from terminal with the "wine" command it gives me an error and the application stops, I don't really understand why somehting like that happens, so I would really appreciate any help or explanation to this. Because as far as I know the .exe is set to be opened with the "wine windows program loader" which is the same as the "wine" command in terminal.
Like I said, STRANGE problem.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: STRANGE problem when loading a .exe!

Post by vitamin »

fescobar wrote:Ok, so here's the deal:
I downloaded a game with no installer, just have to execute the .exe to run.
So when i double click the .exe in Nautilus, the game runs perfectly, but when I execute the game from terminal with the "wine" command
What exact command?
fescobar
Newbie
Newbie
Posts: 3
Joined: Sat Sep 13, 2008 12:43 pm

The command

Post by fescobar »

In the terminal:
wine route_to_the_game/game.exe
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: The command

Post by vitamin »

fescobar wrote:In the terminal:
wine route_to_the_game/game.exe
What _EXACT_ command?
Gabriel Parrondo

STRANGE problem when loading a .exe!

Post by Gabriel Parrondo »

El dom, 14-09-2008 a las 16:03 -0500, fescobar escribió:
In the terminal:
wine route_to_the_game/game.exe
The behaviour of wine may depend on your pwd. When you use nautilus, pwd
is the same as route_to_the_game. Apparently when you are on the
terminal it's not. Try with:

cd route_to_the_game
wine game.exe

And see if that works.

Also, when you ask for help you must give details about what you're
doing (What _EXACT_ command?), what errors do you get ("it gives me an
error and the application stops" doesn't count) and what else did you
try to solve it yourself.



--
Gabriel Parrondo
GNU/Linux User #404138
GnuPG Public Key ID: BED7BF43
JID: [email protected]

"The only difference between theory and practice is that, in theory,
there's no difference between theory and practice."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
Url : http://www.winehq.org/pipermail/wine-us ... chment.pgp
fescobar
Newbie
Newbie
Posts: 3
Joined: Sat Sep 13, 2008 12:43 pm

Fixed it

Post by fescobar »

So, I did something to fix the problem, I don't know if it was something obvious, but I used to type in the terminal:
wine /media/"Documents & Installers"/"Mis documentos"/Installers/"Virtual Farm"/"Virtual Farm"/VirtualFarm.exe
and that didn't work, the game started and then exit, but now I type:
wine "/media/Documents & Installers/Mis documentos/Installers/Virtual Farm/Virtual Farm/VirtualFarm.exe"
and it works.

Why is it different to double quote each folder with spaces in the name or double quoting the whole thing?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Fixed it

Post by vitamin »

fescobar wrote:Why is it different to double quote each folder with spaces in the name or double quoting the whole thing?
'man bash' or any book about shell programming will answer that question. What you tried to do is not valid.

However you still not doing it right. Refer to this FAQ. And pay attention to the paths that you should use and the current working directory you are in: http://wiki.winehq.org/FAQ#head-8d8c06c ... 5c730566e0
Locked