WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Typo in fetching gtk-bookmarks causes exception #23

@avihayb

Description

@avihayb

https://github.com/j4321/tkFileBrowser/blob/master/tkfilebrowser/filebrowser.py#L382
path_bm = join(home, ".config", "gtk-3.0", "bookmarks")
path_bm2 = join(home, ".gtk-bookmarks") # old location
if exists(path_bm):
with open(path_bm) as f:
bms = f.read().splitlines()
elif exists(path_bm2):
with open(path_bm) as f:
*** ^ ***
bms = f.read().splitlines()
else:

path_bm should be path_bm2 or the dialog crashes with file not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions