Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add provider for chromium based edge bookmarks #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Bookmarks/bookmarks.ini
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,24 @@
#bookmarks_files =


[provider/Edge]
# Should bookmarks from the Edge browser be referenced?
# Default: yes
#enable = yes

# By default, this provider will scan the directory(ies) known to be the one
# that are used by this browser to store your bookmarks. However, since this
# detection mechanism is not based on rocket science and given that that browser
# may evolve and change the location of its user data, it is possible to
# manually specify the location of the "Bookmarks" file, used by this browser to
# store your bookmarks.
# * Expected value: the full path to the "Bookmarks" file. This setting accepts
# multi-line value so you may specify several "Bookmarks" files (one per
# line); which don't have to be named "Bookmarks".
# * Default: empty, which means you want to rely on automatic detection
#bookmarks_files =


[provider/Falkon]
# Should bookmarks from the Falkon browser be referenced?
# Default: yes
Expand Down
1 change: 1 addition & 0 deletions Bookmarks/providers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from ._base import Bookmark
from .chrome import ChromeProvider, ChromeCanaryProvider, ChromiumProvider
from .edge import EdgeProvider
from .falkon import FalkonProvider
from .firefox import FirefoxProvider
from .iexplorer import InternetExplorerProvider
Expand Down
15 changes: 15 additions & 0 deletions Bookmarks/providers/edge.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Keypirinha: a fast launcher for Windows (keypirinha.com)

import os.path
from .chrome import ChromeProviderBase

class EdgeProvider(ChromeProviderBase):
def __init__(self, *args):
super().__init__(*args)

def profile_dir_candidates(self):
candidates = []
if self.localappdata_dir:
candidates.append(os.path.join(
self.localappdata_dir, "Microsoft", "Edge", "User Data"))
return candidates