alacarte does not start

Bug #46027 reported by eTM
8
Affects Status Importance Assigned to Milestone
Baltix
Invalid
Medium
Unassigned
pyxdg (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

alacarte does not start because of menu entries that contain non-utf-8 characters

Traceback (most recent call last):
  File "/usr/bin/alacarte", line 26, in ?
    main()
  File "/usr/bin/alacarte", line 23, in main
    GnomeFront()
  File "/usr/lib/python2.4/site-packages/Alacarte/GnomeFront.py", line 72, in __init__
    self.loadMenus()
  File "/usr/lib/python2.4/site-packages/Alacarte/GnomeFront.py", line 205, in loadMenus
    self.sys_handler = MenuHandler('settings.menu', self.options)
  File "/usr/lib/python2.4/site-packages/Alacarte/PyXDGMenuHandler.py", line 27, in __init__
    xdg.MenuEditor.MenuEditor.__init__(
  File "/usr/lib/python2.4/site-packages/xdg/MenuEditor.py", line 28, in __init__
    self.parse(menu, filename, root)
  File "/usr/lib/python2.4/site-packages/xdg/MenuEditor.py", line 40, in parse
    self.menu = parse(menu)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 524, in parse
    __genmenuNotOnlyAllocated(tmp["Root"])
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 856, in __genmenuNotOnlyAllocated
    __genmenuNotOnlyAllocated(submenu)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 856, in __genmenuNotOnlyAllocated
    __genmenuNotOnlyAllocated(submenu)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 859, in __genmenuNotOnlyAllocated
    tmp["cache"].addMenuEntries(menu.AppDirs)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 1022, in addMenuEntries
    self.__addFiles(dir, "", prefix, legacy)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 1036, in __addFiles
    self.__addFiles(dir, os.path.join(subdir,item), prefix, legacy)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 1028, in __addFiles
    menuentry = MenuEntry(os.path.join(subdir,item), dir, prefix)
  File "/usr/lib/python2.4/posixpath.py", line 65, in join
    path += '/' + b
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 47-50: invalid data

Note: the original reporter indicated the bug was in package 'alacarte'; however, that package was not published in Baltix.

Revision history for this message
eTM (juergen-mangler) wrote : Dapper, 0.8-0ubuntu12

affects Dapper, 0.8-0ubuntu12

Revision history for this message
Carthik Sharma (carthik) wrote :

Hi eTM,

Do you still have the same issue with the latest version (0.8-0ubuntu12) of Alacarte on Dapper?
Please let us know. Thanks.

Changed in alacarte:
status: Unconfirmed → Needs Info
Revision history for this message
eTM (juergen-mangler) wrote :

I'm currently on 0.9.90 (0ubuntu1). The error went away with edgy. with 0.8-0ubuntu12 (as written above) the error was still there.

It was produced by crossoveroffice, when I installed a german ms-office. This created "Umlauts" in the menu entries.

Jürgen

Revision history for this message
Carthik Sharma (carthik) wrote :

Closing this bug as the reporter says it is not a bug on Edgy anymore. Thank you for the feedback.

Changed in pyxdg:
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.