Can not edit menu items using alacarte after update

Post your update and upgrade related errors here
Forum rules
Before you post please read this

Can not edit menu items using alacarte after update

Postby Prylux on Fri Oct 07, 2011 2:35 am

Release: 1 (debian) / Kernel: Linux 3.0.0-1-amd64 / GNOME: 3.0.2

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.
"given enough eyeballs, all bugs are shallow" Eric S. Raymond (The Cathedral and the Bazaar)
User avatar
Prylux
Level 1
Level 1
 
Posts: 3
Joined: Fri Oct 07, 2011 12:36 am

Linux Mint is funded by ads and donations.
 

Re: Can not edit menu items using alacarte after update

Postby GeneC on Sat Oct 08, 2011 10:55 am

I have found the same problem but oddly not with my LMDE 64bit "tracking TESTING" partition.(alacarte 1.13.2-1)
AlaCarte works just fine there.

I am having this problem with my LMDE tracking "SID" partion.(same alacarte 1.13.2-1)
Cannot edit the menu at all, check/uncheck does not work, nor delete item.

I tired updating AlaCarte from (alacarte 1.13.2-1) in testing/SID to, (alacarte 1.13.2-2) in "experimental", same thing.

I am thinking this is not a problem with alacarte, as such, but perhaps with one of the other upgrades? Python?
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

Qiana (Cinnamon)
Sparky XFCE (Debian Testing)
Sparky Gnome 3.14 (SID)
EvolveOS (Budgie)
User avatar
GeneC
Level 7
Level 7
 
Posts: 1565
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: Can not edit menu items using alacarte after update

Postby Prylux on Sat Oct 08, 2011 11:46 am

That was what I was starting to think. I am going to try to downgrade this weekend and will post my results. I've had bronchitis the past couple of days and have not felt up to thinking much. I do like figuring thing out though and want to work this issue to add to my knowledge base and hopefully others as well...
"given enough eyeballs, all bugs are shallow" Eric S. Raymond (The Cathedral and the Bazaar)
User avatar
Prylux
Level 1
Level 1
 
Posts: 3
Joined: Fri Oct 07, 2011 12:36 am

Re: Can not edit menu items using alacarte after update

Postby GeneC on Sat Oct 08, 2011 12:26 pm

Prylux

I noticed that there are a few python upgrades in testing that are on hold.
Building dependency tree
Reading state information... Done
The following packages have been kept back:
deskbar-applet libawn1 libreoffice libreoffice-base libreoffice-base-core
libreoffice-calc libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk
libreoffice-impress libreoffice-math libreoffice-writer python python-awn python-brlapi
python-desktop-agnostic python-minimal python-uno

0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.


These have been upgraded in my SID install in which "alacarte" is broken.
I will hold these back in Testing, until I find out for sure what broke alacarte in SID.
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

Qiana (Cinnamon)
Sparky XFCE (Debian Testing)
Sparky Gnome 3.14 (SID)
EvolveOS (Budgie)
User avatar
GeneC
Level 7
Level 7
 
Posts: 1565
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA


Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 3 guests