[MainMenu]Main Menu applet fail trying to load .gtk-bookmarks

Bug #270647 reported by Julien Lavergne on 2008-09-15
Affects Status Importance Assigned to Milestone
Individual Screenlets
Universal Applets

Bug Description

Main Menu crash if there is no gtk-bookmarks. Using Debian Lenny up-to-date UA or Screenlets (same behavior for both).
Traceback :
  File "/usr/share/screenlets/MainMenu/MainMenuScreenlet.py", line 553, in <module>
  File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 472, in create_session
  File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 246, in start
    sl = self.screenlet(session=self, id=self.__get_next_id())
  File "/usr/share/screenlets/MainMenu/MainMenuScreenlet.py", line 193, in __init__
    model,self.objlist3 = menus.get_places(self.theme1)
  File "/usr/share/screenlets/MainMenu/menus.py", line 22, in get_places
    bookmark_list = open(book_loc,"r")
IOError: [Errno 2] No such file or directory: '/home/gilir/.gtk-bookmarks'

IMO, should use utils.LoodBookmark(), but don't know if it'll be enought.

Natan Yellin (aantny) wrote :

Thanks for the patch.

MainMenu's code is a nightmare, but I'll look into using utils.LoadBookmarks when I get a chance. Thanks.

Natan Yellin (aantny) wrote :

Committed in revision 115.

Changed in universal-applets:
status: New → Fix Committed
Julien Lavergne (gilir) wrote :

Fix commited in screenlets trunk revision 467

Changed in screenlets:
status: New → Fix Committed
importance: Undecided → Medium
Papp Bence (sclegnrbs) on 2010-12-27
affects: screenlets → indiv-screenlets
summary: - Main Menu applet fail trying to load .gtk-bookmarks
+ [MainMenu]Main Menu applet fail trying to load .gtk-bookmarks
Märt Põder (boamaod) on 2011-06-27
Changed in indiv-screenlets:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers