GNOME Bugzilla – Bug 355828
exception when hiding submenu
Last modified: 2006-10-02 23:38:34 UTC
-start alacarte -try to unselect Accessibility submenu check box exception : Traceback (most recent call last):
+ Trace 72282
self.editor.setVisible(item, False)
menu_xml = self.__getXmlMenu(self.__getPath(item), dom, dom)
node = self.__addXmlMenuElement(element, name, dom)
return element.appendChild(node)
raise xml.dom.HierarchyRequestErr( xml.dom.HierarchyRequestErr: two document elements disallowed
I get this same exception also, only it occurs whenever I attempt basically anything - hide submenu, create a new menu, create a new item ... I tried this with both python-xml (the provider of xml.dom.minidom.py) version 2.4.2 and 2.4.3
I cannot reproduce this here.
Ok, I found what is causing this : on Mandriva Linux, our top menu is called "Mandriva Linux" and not "Applications" (because we used to have a submenu also called Applications). Unfortunately, Alacarte is searching for "Applications" to get root node. I've check menu specification and there is no indication top menu node must be called "Applications" (or Desktop for settings.menu). Let's see if we can guess it from system menu file instead of hardcoding it.
Created attachment 73856 [details] [review] don't hardcode root node name
Applied, thanks.