alacarte object has no attribute 'startswith'

Bug #800215 reported by zniavre
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Alacarte Menu Editor
alacarte (Ubuntu)

Bug Description

Binary package hint: alacarte

using ubuntu 11.10 without unity and gnome-shell
minimal installation of gnome-3.0
the Application menu is empty, new user does not solve the empty Application menu.
launching 'alacarte' gives a traceback (must be sent with bug-report).

thank you best regards

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: alacarte 0.13.2-2ubuntu2
ProcVersionSignature: Ubuntu 3.0-1.2-generic 3.0.0-rc3
Uname: Linux 3.0-1-generic i686
Architecture: i386
Date: Tue Jun 21 16:27:44 2011
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: alacarte
UpgradeStatus: Upgraded to oneiric on 2011-06-07 (14 days ago)

Revision history for this message
zniavre (zniavre2048-gmail) wrote :
Revision history for this message
zniavre (zniavre2048-gmail) wrote :

zniavre2@zniavre2:~$ alacarte
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 37, in <module>
  File "/usr/bin/alacarte", line 33, in main
    app = MainWindow(datadir, version, sys.argv)
  File "/usr/share/alacarte/Alacarte/", line 49, in __init__
    self.editor = MenuEditor()
  File "/usr/share/alacarte/Alacarte/", line 36, in __init__
  File "/usr/share/alacarte/Alacarte/", line 44, in __loadMenus
    self.applications.path = os.path.join(util.getUserMenuPath(), self.applications.tree.get_menu_file())
  File "/usr/lib/python2.7/", line 66, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
zniavre2@zniavre2:~$ ubuntu-bug alacarte

Jason Conti (jconti)
Changed in alacarte (Ubuntu):
status: New → Confirmed
Revision history for this message
Jason Conti (jconti) wrote :

Marking this as confirmed. The gnome-menus package includes a patch that renames /etc/xdg/menus/ to Including a minimal patch that allows alacarte to run. However it is possible for tree.get_menu_file() to return None if both ~/.config/menus/ and /etc/xdg/menus/ are missing, and alacarte should probably check for this and handle it gracefully.

This will not fix the problem of the Applications menu being empty. Copying ~/.config/menus/ back to will populate the menu, so it seems gnome-panel doesn't handle this change yet either. There is a bug for this:

tags: added: patch
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the report, linking the upstream report

Changed in alacarte (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in alacarte:
importance: Unknown → High
status: Unknown → New
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.