From daed7b863b25812f2c9f1f809ae8b1cdb2cef17f Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Mon, 20 May 2013 17:58:02 -0400 Subject: [PATCH] Don't crash if .gtk-bookmarks doesn't exist yet --- usr/lib/linuxmint/mintMenu/plugins/places.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/places.py b/usr/lib/linuxmint/mintMenu/plugins/places.py index d76958d..182785b 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/places.py +++ b/usr/lib/linuxmint/mintMenu/plugins/places.py @@ -225,7 +225,9 @@ class pluginclass( object ): def do_gtk_bookmarks( self ): if self.showGTKBookmarks: - bookmarks = {} + if not os.path.exists(os.path.expanduser('~/.gtk-bookmarks')): + return + bookmarks = {} with open(os.path.expanduser('~/.gtk-bookmarks'), 'r') as f: for line in f: #line = line.replace('file://', '')