Use the Gtk3 bookmarks location (#174)
This commit is contained in:
parent
07124667b7
commit
bd2e150e6e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user