http://bugs.winehq.org/show_bug.cgi?id=20812
Summary: Respect %windir% in middle of file path Product: Wine Version: 1.1.33 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: scott@open-vote.org
Installing Performance Guru with Wine generates this desktop file:
#!/usr/bin/env xdg-open [Desktop Entry] Name=Performance Guru Exec=env WINEPREFIX="/home/scott/.wine" wine "C:\program files\Flygprestanda\%windir%\system32\javaw.exe" -Djava.library.path=.\ -Dguru.path=.\ -jar "c:\program files\Flygprestanda\guru-core.jar" Type=Application StartupNotify=true Path=/home/scott/.wine/dosdevices/c:/Program Files/Flygprestanda Icon=/home/scott/.local/share/icons/d37a_flygp.png
However, this .desktop file doesn't work for actually opening the application. Wine returns:
wine: cannot find 'C:\program files\Flygprestanda%windir%\system32\javaw.exe'
If I manually change this to: Exec=env WINEPREFIX="/home/scott/.wine" wine "C:\windows\system32\javaw.exe" -Djava.library.path=.\ -Dguru.path=.\ -jar "c:\program files\Flygprestanda\guru-core.jar"
The program loads a bit but dies with a java file not found warning when I double click the .desktop file. The same thing happens when I run the above in a terminal window (from folder ~).
If I change my working directory to ~/.wine/drive_c/Program Files/Flygprestanda on the terminal and then run the exec line above it works normally.
So it seems that there are 2 things: 1) we don't support %windir% properly when it's in the middle of the file path, and 2) we need to set the working directory to whatever the path was before the %windir%
http://bugs.winehq.org/show_bug.cgi?id=20812
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2009-11-23 22:34:06 --- Does starting the .lnk file work correctly? We may need to do it that way, as we cannot otherwise handle changing environment variables.
http://bugs.winehq.org/show_bug.cgi?id=20812
Scott Ritchie scott@open-vote.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |scott@open-vote.org
--- Comment #2 from Scott Ritchie scott@open-vote.org 2009-11-23 22:42:53 --- scott@scott-laptop:~/Desktop$ wine Performance\ Guru.lnk Segmentation fault
scott@scott-laptop:~/Desktop$ wine start Performance\ Guru.lnk fixme:exec:SHELL_execute flags ignored: 0x00000100 fixme:exec:SHELL_execute flags ignored: 0x00004100 fixme:shell:DllCanUnloadNow stub Application could not be started, or no application associated with the specified file. ShellExecuteEx failed: Success
http://bugs.winehq.org/show_bug.cgi?id=20812
--- Comment #3 from Dmitry Timoshkov dmitry@codeweavers.com 2009-11-24 02:39:44 --- A better question would be 'does such broken .lnk file work under Windows'?
http://bugs.winehq.org/show_bug.cgi?id=20812
--- Comment #4 from Scott Ritchie scott@open-vote.org 2009-11-24 13:59:19 --- The desktop shortcut Vista creates works in Vista. Unsure about other Windows.
http://bugs.winehq.org/show_bug.cgi?id=20812
--- Comment #5 from Vincent Povirk madewokherd@gmail.com 2009-11-24 14:13:25 --- I think Dmitry was trying to imply that Wine may be generating broken .lnk files that wouldn't work on Windows.
http://bugs.winehq.org/show_bug.cgi?id=20812
--- Comment #6 from Austin English austinenglish@gmail.com 2010-05-07 11:01:08 --- May be fixed by http://source.winehq.org/git/wine.git/?a=commitdiff;h=55e4eba2ec5657f2cac059....
http://bugs.winehq.org/show_bug.cgi?id=20812
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
--- Comment #7 from Jerome Leclanche adys.wh@gmail.com 2012-02-17 13:49:37 CST --- Not sure I understand the issue here. Could you retest?
http://bugs.winehq.org/show_bug.cgi?id=20812
--- Comment #8 from Bruno Jesus 00cpxxx@gmail.com 2013-10-01 07:40:50 CDT --- I can't find an application that depends on this, the original application from Flygprestanda is not available for download. Comment 6 suggests it was fixed 3 years ago.
http://bugs.winehq.org/show_bug.cgi?id=20812
Scott Ritchie scott@open-vote.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |ABANDONED
--- Comment #9 from Scott Ritchie scott@open-vote.org 2013-10-01 15:01:37 CDT --- I don't have my download of the app handy either. Given that no one can test it, though it's presumed fixed, I'm marking abandoned.
http://bugs.winehq.org/show_bug.cgi?id=20812
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Austin English austinenglish@gmail.com 2013-10-22 04:42:44 CDT --- Closing.