http://bugs.winehq.org/show_bug.cgi?id=13963
Summary: Start Menu items with '&' won't appear Product: Wine Version: 1.0-rc5 Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: spock128@gmail.com
Created an attachment (id=14124) --> (http://bugs.winehq.org/attachment.cgi?id=14124) diff of non- and working .menu files
When installing programs that create Start Menu shortcuts, any *.lnk files with an & (ampersand) in the filename will be incorrectly converted into freedesktop/Gnome .menu files.
In the generated .menu file, a reference to a .desktop file can be created without properly escaping the & in the .desktop file name (replace & with &). This was tested by installing Tribes 2 from http://renwerx.com/dl.cgi?tribes2_gsi.exe - the contents of Start Menu\Dynamix\Tribes2\ will not appear (except for Classic) under Gnome 2.20 due to the malformed .menu file. Once escaped, the shortcuts appear as normal.
I presume this isn't specific to Tribes 2, but it is the only app I know of that is subject to it.
http://bugs.winehq.org/show_bug.cgi?id=13963
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=13963
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #1 from Austin English austinenglish@gmail.com 2008-12-19 16:10:20 --- Is this still an issue in current (1.1.10 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=13963
--- Comment #2 from spock128@gmail.com 2008-12-19 22:35:55 --- This still shows up using Wine 1.1.10 and Gnome 2.22.3. The problem is mitigated now by wine placing each shortcut in its own .menu file, but the menu with the & is still not showing up until I manually change it.
In this case, the menu file is "~/.config/menus/applications-merged/wine-Programs-Dynamix-Tribes2-Tribes2 Solo & Lan.menu", which is attempting to load "wine-Programs-Dynamix-Tribes2-Tribes 2 Solo & Lan.desktop". Since this is an xml file, Gnome is trying to interpret the "&" as an escape sequence, and it fails to parse. Replacing "&" with "&" causes Gnome to display the shortcut properly.
I don't know if this is an error in Wine or Gnome, but it seems like it should be a relatively easy fix (once directed to the appropriate people).
http://bugs.winehq.org/show_bug.cgi?id=13963
LMLB magnus.lb@swipnet.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |magnus.lb@swipnet.se
--- Comment #3 from LMLB magnus.lb@swipnet.se 2009-07-19 07:13:35 --- same with kde 3.5.7
http://bugs.winehq.org/show_bug.cgi?id=13963
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thesource@mail.ru
--- Comment #4 from Ken Sharp kennybobs@o2.co.uk 2009-08-10 18:42:30 --- *** Bug 16279 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=13963
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |integration Status|UNCONFIRMED |NEW Summary|Start Menu items with '&' |menubuilder does not escape |won't appear |certain characters Ever Confirmed|0 |1
--- Comment #5 from Ken Sharp kennybobs@o2.co.uk 2009-08-10 18:43:26 ---
From Damjan in Bug 16279:
The ampersand (&) is not valid in XML documents and needs to be escaped (into &). We don't do any escaping in winemenubuilder.
A few other characters like <, >, and " would also need escaping.
http://bugs.winehq.org/show_bug.cgi?id=13963
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kennybobs@o2.co.uk
http://bugs.winehq.org/show_bug.cgi?id=13963
--- Comment #6 from Damjan Jovanovic damjan.jov@gmail.com 2009-11-07 09:39:44 --- Created an attachment (id=24579) --> (http://bugs.winehq.org/attachment.cgi?id=24579) Generate XML files with libxml2
Please try this patch, it uses libxml2 to generate XML files instead of generating them internally, and libxml2 should escape everything properly.
http://bugs.winehq.org/show_bug.cgi?id=13963
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |damjan.jov@gmail.com Resolution| |FIXED
--- Comment #7 from Damjan Jovanovic damjan.jov@gmail.com 2009-11-16 12:03:30 --- Git now has my patches that should fix this.
Resolving FIXED.
http://bugs.winehq.org/show_bug.cgi?id=13963
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org 2009-12-04 12:15:35 --- Closing bugs fixed in 1.1.34.