http://bugs.winehq.org/show_bug.cgi?id=26535
Summary: Escaped spaces in desktop entries Product: Wine Version: 1.2.2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: markus.enzenberger@gmail.com
I found a small bug in the desktop entry creation of Wine 1.2.2. I installed a program that creates links in the start menu and on the desktop. While it works to run the program from the start menu, clicking on the Desktop entry fails. The problem is that the command line in the desktop entry escapes spaces that shouldn't be escaped.
The command in the desktop entry is:
env WINEPREFIX="/home/markus/.wine" wine C:\Programme\Java\jre6\bin\javaw.exe -jar\ "C:\Programme\Fuego\gogui.jar"\ -program\ "C:\Programme\Fuego\fuego.exe"\ -register
Running this command in a terminal shows the error:
Unrecognized option: -jar "C:\Programme\Fuego\gogui.jar" -program "C:\Programme\Fuego\fuego.exe" -register
The problem is that, because spaces are inadvertedly escaped, javaw.exe is invoked with the argument line merged into a single argument.
When I click on the corresponding lnk file in c:\users\Public\Desktop the program starts without problems. Therefore I think that the program installs correctly, but Wine makes a mistake when creating the desktop entry from the lnk file.