From bd2e150e6ef68d011550d7f03fe21d740258562a Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Sat, 6 May 2017 16:07:02 +0300 Subject: [PATCH] Use the Gtk3 bookmarks location (#174) --- 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()