Bug#630017: alacarte is full cleaning ~/.config/menus/gnome-applications.menu

Alex Cones alexcones at gmail.com
Fri Jun 10 11:25:59 UTC 2011


Package: alacarte
Version: 0.13.2-1
Severity: grave
Tags: upstream
Justification: renders package unusable

When I tried to click uninstalled, but visible program (wine *.exe) in alacarte
it clean ~/.config/menus/gnome-applications.menu file. Then it impossible to
run alacarte again:
---------------------------
Traceback (most recent call last):
File "/usr/bin/alacarte", line 37, in <module>
main()
File "/usr/bin/alacarte", line 33, in main
app = MainWindow(datadir, version, sys.argv)
File "/usr/share/alacarte/Alacarte/MainWindow.py", line 49, in __init__
self.editor = MenuEditor()
File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 36, in __init__
self.__loadMenus()
File "/usr/share/alacarte/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 211, in parseFile
parser.Parse("", True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0
------------------------------

When I running alacarte before bug in terminal I see next messages during bug-
actions:

--------------------------------
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 221, in setVisible
    self.save()
  File "/usr/share/alacarte/Alacarte/MenuEditor.py", line 68, in save
    fd.write(re.sub("\n[\s]*([^\n<]*)\n[\s]*</", "\\1</", getattr(self,
menu).dom.toprettyxml().replace('<?xml version="1.0" ?>\n', '')))
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 60, in toprettyxml
    return writer.getvalue()
  File "/usr/lib/python2.6/StringIO.py", line 270, in getvalue
    self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd1 in position 58: invalid
continuation byte

** (alacarte:5322): WARNING **: Error loading menu layout from
"/home/alex/.config/menus/gnome-applications.menu": File is empty.
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 113, in loadUpdates
    self.loadMenus()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 214, in loadMenus
    self.loadMenu(iters, menu)
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 229, in loadMenu
    iters[depth] = self.menu_store.append(None, (icon,
cgi.escape(parent.get_name()), parent))
AttributeError: 'NoneType' object has no attribute 'get_name'
------------------------------------

I solved it so:
---------
rm ~/.config/menus/gnome-applications.menu
---------
Then default menu was recreated.



-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages alacarte depends on:
ii  gnome-menus           2.30.3-1           an implementation of the freedeskt
ii  python                2.6.6-3+squeeze6   interactive high-level object-orie
ii  python-gmenu          2.30.3-1           an implementation of the freedeskt
ii  python-gobject        2.21.4+is.2.21.3-1 Python bindings for the GObject li
ii  python-gtk2           2.17.0-4           Python bindings for the GTK+ widge
ii  python-support        1.0.10             automated rebuilding support for P

Versions of packages alacarte recommends:
ii  gnome-panel                   2.30.2-2   launcher and docking facility for 

alacarte suggests no packages.

-- no debconf information





More information about the pkg-gnome-maintainers mailing list