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(a)winehq.org ReportedBy: scott(a)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% -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.