Public bug reported: Binary package hint: alacarte
Editing a menu item which has an ampersand in it (&), properly encoded in the XML as & before, removes this XML encoding, meaning that the user gets invalid XML, and the menu vanishes. This is Not a Good Thing. It means that the menu editor just doesn't open again... so I ran it in a terminal and got this: Traceback (most recent call last): File "/usr/bin/alacarte", line 36, in <module> main() File "/usr/bin/alacarte", line 32, in main app = MainWindow(datadir, version, sys.argv) File "/usr/lib/pymodules/python2.6/Alacarte/MainWindow.py", line 48, in __init__ self.editor = MenuEditor() File "/usr/lib/pymodules/python2.6/Alacarte/MenuEditor.py", line 36, in __init__ self.__loadMenus() File "/usr/lib/pymodules/python2.6/Alacarte/MenuEditor.py", line 48, in __loadMenus self.applications.dom = xml.dom.minidom.parse(self.applications.path) File "/usr/lib/python2.6/xml/dom/minidom.py", line 1918, in parse return expatbuilder.parse(file) File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 924, in parse result = builder.parseFile(fp) File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 207, in parseFile parser.Parse(buffer, 0) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 10, column 61 The instance in question was a Google Chrome application item, http://mail.google.com/mail/?ui=2&shva=1#inbox. This converted to the following line in ~/.config/menus/applications.menu: <Filename>chrome- http___mail.google.com_mail__ui=2&shva=1#inbox.desktop</Filename> I disabled it in the menu editor and everything vanished - the "amp;" had vanished, leaving malformed XML. ** Affects: alacarte (Ubuntu) Importance: Undecided Status: New -- Editing item with ampersand breaks XML https://bugs.launchpad.net/bugs/533050 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to alacarte in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs