After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590491 - Alacarte crashes when global menu files do not exist.
Alacarte crashes when global menu files do not exist.
Status: RESOLVED DUPLICATE of bug 592718
Product: alacarte
Classification: Applications
Component: general
0.12.x
Other All
: Normal critical
: ---
Assigned To: Alacarte Maintainer(s)
Alacarte Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-08-01 22:31 UTC by Marti
Modified: 2009-12-04 04:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Marti 2009-08-01 22:31:36 UTC
Steps to reproduce:
1. mv /etc/xdg/menus/applications.menu /etc/xdg/menus/applications.menu.tmp
2. Launch alacarte


Stack trace:
Traceback (most recent call last):
  • File "/usr/bin/alacarte", line 36 in <module>
    main()
  • File "/usr/bin/alacarte", line 32 in main
    app = MainWindow(datadir, version, sys.argv)
  • File "/usr/lib64/python2.6/site-packages/Alacarte/MainWindow.py", line 48 in __init__
    self.editor = MenuEditor()
  • File "/usr/lib64/python2.6/site-packages/Alacarte/MenuEditor.py", line 36 in __init__
    self.__loadMenus()
  • File "/usr/lib64/python2.6/site-packages/Alacarte/MenuEditor.py", line 42 in __loadMenus
    self.applications.path = os.path.join(util.getUserMenuPath(), self.applications.tree.get_menu_file())
  • File "/usr/lib64/python2.6/posixpath.py", line 65 in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

This happens because self.applications.tree.get_menu_file() returns None.

Sure, missing menu files are a bad condition, but nevertheless the application should inform the user, not die without a whisper.


Other information:
Comment 1 Akhil Laddha 2009-12-04 04:30:16 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 592718 ***