I have an uninstalled portable Windows .exe. When I type the absolute path, it doesn't work:> wine /home/ubuntu/appDir/myApp.exebut, if I cd to the application directory and execute it locally, it works: Code: cd /home/ubuntu/appDir/ wine myApp.exe I'm trying to include it in my Docky dock via a .desktop shortcut I've made in /usr/share/applications/. I don't mind the command line for under the hood stuff, but not for launching typical user apps.
James McKenzie
2012-Feb-01 16:35 UTC
[Wine] Wine Executes Locally, But Not With Absolute Path
On Wed, Feb 1, 2012 at 9:21 AM, winepunk <wineforum-user at winehq.org> wrote:> I have an uninstalled portable Windows .exe. > > When I type the absolute path, it doesn't work: > > >> wine /home/ubuntu/appDir/myApp.exe > > > but, if I cd to the application directory and execute it locally, it works: > > > Code: > cd /home/ubuntu/appDir/ > > wine myApp.exeThis is how Windows does it and this is how Wine does it. This is not going to change.> ?I'm trying to include it in my Docky dock via a .desktop shortcut I've made in /usr/share/applications/. I don't mind > the command line for under the hood stuff, but not for launching typical user apps.You need to ask on the Ubuntu forums how to do this. James
dimesio
2012-Feb-01 17:11 UTC
[Wine] Re: Wine Executes Locally, But Not With Absolute Path
winepunk wrote:> I have an uninstalled portable Windows .exe. > > When I type the absolute path, it doesn't work: > > > > wine /home/ubuntu/appDir/myApp.exe > > > but, if I cd to the application directory and execute it locally, it works: > > > Code: > cd /home/ubuntu/appDir/ > > wine myApp.exe > > > > I'm trying to include it in my Docky dock via a .desktop shortcut I've made in /usr/share/applications/. I don't mind the command line for under the hood stuff, but not for launching typical user apps.KDE allows you to set the working directory for launchers, but I don't think Gnome does and I have no idea about Unity. You could try using Code: wine start /Unix /path/to/myApp.exe and if that doesn't work, just write a shell script that changes the directory and launches the app and use the launcher for that.
winepunk
2012-Feb-01 22:39 UTC
[Wine] Re: Wine Executes Locally, But Not With Absolute Path
Had no idea Windows required you drop down locally. And as far as a script, already shebanged it out. Well it makes no sense anyway guys. I have other .desktop shortcuts that execute absolute paths and launch with no complaint. Here is an actual line from the shortcut file: Exec=wine "/home/artist/Adobe Photoshop CS5/ps.exe"
winepunk
2012-Feb-01 22:41 UTC
[Wine] Re: Wine Executes Locally, But Not With Absolute Path
I meant to say that line works. Why should Wine be finicky?