I do not know what was updated that caused this issue as I haven't had to edit my menus much. Alacarte was prev working however when I recently tried to use it I could delete menu items but could not create a new item also I could not add or remove the check-mark in the "Show" boxes.
When trying to add or remove a check-mark I get this report in bash:
Traceback (most recent call last):
File "/usr/share/alacarte/Alacarte/MainWindow.py", line 433, in on_item_tree_show_toggled
self.editor.setVisible(item, False)
File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 213, in setVisible
menu_xml = self.__getXmlMenu(self.__getPath(item), dom, dom)
File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 506, in __getXmlMenu
node = self.__addXmlMenuElement(element, name, dom)
File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 517, in __addXmlMenuElement
return element.appendChild(node)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1550, in appendChild
"two document elements disallowed")
xml.dom.HierarchyRequestErr: two document elements disallowed
When trying to add a item to the menu i get this report in bash:
Traceback (most recent call last):
File "/usr/share/alacarte/Alacarte/MainWindow.py", line 267, in waitForNewItemProcess
self.editor.insertExternalItem(os.path.split(file_path)[1], parent)
File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 229, in insertExternalItem
self.__addItem(parent, file_id, dom)
File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 684, in __addItem
xml_parent = self.__getXmlMenu(self.__getPath(parent), dom, dom)
File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 506, in __getXmlMenu
node = self.__addXmlMenuElement(element, name, dom)
File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 517, in __addXmlMenuElement
return element.appendChild(node)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1550, in appendChild
"two document elements disallowed")
xml.dom.HierarchyRequestErr: two document elements disallowed
Some line numbers will change depending on what directory or menu I'm trying to edit but the overall report is the same.
I have tried to google this issue to no avail. I have tried:
sudo chown -R $USER:$USER ~/.config
find ~/.config/menus -type d -exec chmod 755 {} \;
find ~/.config/menus -type f -exec chmod 644 {} \;
I am done for tonight as I have spent several hours on this searching for a way to resolve this issue. It is now 0230 local and am in need of rest.
Any ideas or insight would be appreciated. I will check in the morning for any responses. Thank you.



