From 67b2fd8c19bc84d0ed8392416c9c777e9d24cd80 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Sat, 6 May 2017 14:58:24 +0300 Subject: [PATCH] Use the Gtk3 bookmarks location --- usr/lib/linuxmint/mintMenu/plugins/places.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/places.py b/usr/lib/linuxmint/mintMenu/plugins/places.py index ee2a9ff..916bb65 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/places.py +++ b/usr/lib/linuxmint/mintMenu/plugins/places.py @@ -219,10 +219,13 @@ class pluginclass( object ): def do_gtk_bookmarks( self ): if self.showGTKBookmarks: - if not os.path.exists(os.path.expanduser('~/.gtk-bookmarks')): + bookmarksFile = os.path.join(GLib.get_user_config_dir(), "gtk-3.0", "bookmarks") + if not os.path.exists(bookmarksFile): + bookmarksFile = os.path.join(GLib.get_home_dir(), ".gtk-bookmarks") + if not os.path.exists(bookmarksFile): return bookmarks = [] - with open(os.path.expanduser('~/.gtk-bookmarks'), 'r') as f: + with open(bookmarksFile, "r") as f: for line in f: #line = line.replace('file://', '') line = line.rstrip()