[Bug 26535] New: Escaped spaces in desktop entries

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Mar 24 05:17:32 CDT 2011


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 at winehq.org
        ReportedBy: markus.enzenberger at 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.

-- 
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.



More information about the wine-bugs mailing list