Link to NON-Installed program

Questions about Wine on Linux
Locked
UselessRegister
Newbie
Newbie
Posts: 3
Joined: Sun Nov 20, 2016 1:09 pm

Link to NON-Installed program

Post by UselessRegister »

Ubuntu 14LTS.
Hi, I have some windows programs I use daily and they do not have installers, they are just run from the folders I copied over.

They need to first change to the folder before running. I created a Ubuntu .Lnk file using Nautilus (the File Manager) and moved it to the Desktop, but when I click the link it runs the program, but it saves stuff to the desktop and not to the folder of the program.

I need wine to first change to the home directory of the program then run the program. I did some searching here and found a posting with a similar issue and the suggestion was to use /D in the wine-start line.

But, try as I might I cannot make it work. I do not have programs that used an installer so I have nothing to try and copy.

Could someone please give me an example of how to make this run from a link on the desktop.

Ubuntu Username = mytest
Program = home/mystuff/TestProg/TestProg.exe

Thanks
Leezia
Newbie
Newbie
Posts: 2
Joined: Tue Dec 13, 2016 9:27 am

Re: Link to NON-Installed program

Post by Leezia »

[Desktop Entry]
Name=TestProg
Exec=wine /home/mystuff/TestProg/TestProg.exe
Type=Application
StartupNotify=true
Path=/home/mystuff/TestProg
Icon=/myicon/path

Path= <-- this is the working directory

Gl
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Re: Link to NON-Installed program

Post by dimesio »

Exec=wine /home/mystuff/TestProg/TestProg.exe
If you're using a unix-style path, you need to use wine start /unix. https://wiki.winehq.org/Wine_User%27s_G ... wine_start
Simon of Aragon
Level 3
Level 3
Posts: 94
Joined: Sat Sep 08, 2012 3:56 pm

Re: Link to NON-Installed program

Post by Simon of Aragon »

Here is an example;

Code: Select all

[Desktop Entry]
Exec=wine '/media/simon/Drive D/Neverwinter Nights Diamond Edition/nwn.exe'
Icon=/home/simon/Games/Adventure/.icons/nwn.png
Path=/media/simon/Drive D/Neverwinter Nights Diamond Edition
X-KDE-SubstituteUID=false
Notice the single quotes? That is all you are missing. Oh BTW, I got this game on GOG FREE!! Whoot!
Locked