Need proper command line for wine desktop configuration file

Questions about Wine on Linux
Locked
starkiller
Level 1
Level 1
Posts: 5
Joined: Wed Jul 29, 2015 10:06 am

Need proper command line for wine desktop configuration file

Post by starkiller »

Hello everyone,
in the light of this problem: viewtopic.php?f=8&t=25008
I tried to fix the issue myself but now it seems that I did more harm than I wanted to...

I run Ubuntu 14.04. (LTS) with the up-to-date (today) version and have a wine program installed called "Ahnenblatt". My wine is version 1.6.2. If I navigate to the program itself, i can double click it and it works like it should. The file directory is:

/home/julian/.wine/drive_c/Program Files (x86)/Ahnenblatt/Ahnblatt.exe

When I installed the windows program, wine created a "desktop configuration file (application/x-desktop)" in my home directory only called "Ahnenblatt" so that I could run it as if it were a native ubuntu app. When I right click on that desktop configuration file, there is a field called "Command" that I altered when trying to fix the problem stated above occurred. Now as everything is fine, I forgot to save the proper (out-of-the-box) command for running the program. Can somebody help me? Right now I have this command line, but it doesn't start the exe.

env WINEPREFIX="/home/julian/.wine" wine C:\\\Program\\Files\\(x86)\\\Ahnenblatt\\\Ahnblatt.exe

I only altered the "\" (back slashes), so did I forget some of them somewhere? The exe being called "Ahnblatt.exe" instead of "Ahnenblatt.exe" is correct.

best regards, julian
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Need proper command line for wine desktop configuration

Post by dimesio »

There are various ways to do it. http://wiki.winehq.org/FAQ#run_from_terminal
starkiller
Level 1
Level 1
Posts: 5
Joined: Wed Jul 29, 2015 10:06 am

Re: Need proper command line for wine desktop configuration

Post by starkiller »

thx, my solution looks like this:

env WINEPREFIX="/home/julian/.wine" wine start "C:\\Program Files (x86)\\Ahnenblatt\\Ahnblatt.exe"

cheers mates!
Locked