dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #19974
[Bug 772152] Re: unity-place-applications.menu has double-hyphen in XML comment, causing "cxmenu:error: unable to parse '/etc/xdg/menus/unity-place-applications.menu': Invalid string in comment field [Ln: 157, Col: 8]"
** Changed in: unity (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages, dx-packages
https://bugs.launchpad.net/bugs/772152
Title:
unity-place-applications.menu has double-hyphen in XML comment,
causing "cxmenu:error: unable to parse '/etc/xdg/menus/unity-place-
applications.menu': Invalid string in comment field [Ln: 157, Col: 8]"
Status in Unity:
Fix Released
Status in Unity Applications Lens:
Fix Released
Status in “unity” package in Ubuntu:
Fix Released
Status in “unity-place-applications” package in Ubuntu:
Fix Released
Status in “unity” source package in Natty:
New
Status in “unity-place-applications” source package in Natty:
Fix Released
Bug description:
Install unity-place-applications 0.2.46-0ubuntu3.1 from natty-proposed. Then logout and login again in the session.
Check that the output is sane now (see below for the steps)
STEPS TO REPRODUCE:
1. Obtain an .deb for some crossover product. e.g. here's the demo for crossover-games: (32 and 64 bit)
http://media.codeweavers.com/pub/crossover/cxgames/demo/crossover-games-demo_10.1.0-1_i386.deb
http://media.codeweavers.com/pub/crossover/cxgames/demo/ia32-crossover-games-demo_10.1.0-1_amd64.deb
2. Install the .deb with dpkg:
sudo dpkg -i crossover-games-demo_10.1.0-1_i386.deb
ACTUAL RESULTS: This output:
Selecting previously deselected package crossover-games-demo.
(Reading database ... 166164 files and directories currently installed.)
Unpacking crossover-games-demo (from crossover-games-demo_10.1.0-1_i386.deb) ...
Setting up crossover-games-demo (10.1.0-1) ...
cxmenu:error: unable to parse '/etc/xdg/menus/unity-place-applications.menu': Invalid string in comment field [Ln: 157, Col: 8]
Processing triggers for menu ...
EXPECTED RESULTS: No "cxmenu:error" line for unity-place-
applications.menu.
From hand-tweaking unity-place-applications.menu, I've discovered it's due to this chunk of the file:
<!-- Note: Software Center uses an OnlyUnallocated clause to generate
-- the System section. We can't do that because we have the All Apps
-- section. Let's cross fingers and hope we match somewhat
-->
Those stray "--" markers are bad XML*, and if I remove them, this
issue goes away. (crossover products install without any such
warning.)
*From https://developer.mozilla.org/en/The_Importance_of_Correct_HTML_Commenting#XML :
For compatibility, the string "--" (double-hyphen) must not occur within comments.
To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/772152/+subscriptions