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 647382 - Python error on startup with gnome-menus 2.91.6+
Python error on startup with gnome-menus 2.91.6+
Status: RESOLVED FIXED
Product: alacarte
Classification: Applications
Component: general
0.13.x
Other Linux
: Normal major
: ---
Assigned To: Alacarte Maintainer(s)
Alacarte Maintainer(s)
: 655113 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-04-10 20:40 UTC by Glenn
Modified: 2011-08-22 18:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Drop settings.menu since it’s not provided in gnome-menus anymore. (4.65 KB, patch)
2011-05-21 08:41 UTC, Balló György
accepted-commit_now Details | Review

Description Glenn 2011-04-10 20:40:38 UTC
Running Arch linux - gnome 3 - alacarte-0.13.2-3:
System up2date

when running alacarte from shell i get this output error:

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/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 48 in __init__
    self.editor = MenuEditor()
  • File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 36 in __init__
    self.__loadMenus()
  • File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 56 in __loadMenus
    self.settings.path = os.path.join(util.getUserMenuPath(), self.settings.tree.get_menu_file())
  • File "/usr/lib/python2.7/posixpath.py", line 66 in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith

I cannote edit menus....

Thanks
Comment 1 Ionut Biru 2011-04-10 20:43:30 UTC
in gnome-menus 3.0.0 the System category was dropped and i think that is related to that.
Comment 2 Francisco Pina Martins 2011-05-03 15:26:41 UTC
In my system alacarte works fine, with gnome 3 fully up to date...
Comment 3 Balló György 2011-05-21 08:41:01 UTC
Created attachment 188275 [details] [review]
Drop settings.menu since it’s not provided in gnome-menus anymore.

Here is a patch from Debian, which fixes this bug.
Comment 4 Alexandre Rostovtsev 2011-08-06 21:59:12 UTC
(In reply to comment #3)
> Created an attachment (id=188275) [details] [review]
> Drop settings.menu since it’s not provided in gnome-menus anymore.
> 
> Here is a patch from Debian, which fixes this bug.

Note that this patch should only be used on systems with >=gnome-menus-2.91.6 (the earliest version that dropped settings.menu).
Comment 5 Olav Vitters 2011-08-22 07:42:57 UTC
*** Bug 655113 has been marked as a duplicate of this bug. ***
Comment 6 Olav Vitters 2011-08-22 07:48:54 UTC
Comment on attachment 188275 [details] [review]
Drop settings.menu since it’s not provided in gnome-menus anymore.

Please commit to head. Might need minor changes due to switch to gobject introspection.
Comment 7 Olav Vitters 2011-08-22 18:49:40 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.