Skip to content

Commit

Permalink
Update open_with_linux.py
Browse files Browse the repository at this point in the history
Aiming to fix darktrojan#250

* focusing first on Linux
  • Loading branch information
grahamperrin authored Mar 1, 2020
1 parent 2df7f34 commit 7510cb2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webextension/native/open_with_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ def install():
'type': 'stdio',
}
locations = {
'brave': os.path.join(home_path, '.config', 'BraveSoftware', 'Brave-Browser-Dev', 'NativeMessagingHosts'),
'chrome': os.path.join(home_path, '.config', 'google-chrome', 'NativeMessagingHosts'),
'chromium': os.path.join(home_path, '.config', 'chromium', 'NativeMessagingHosts'),
'firefox': os.path.join(home_path, '.mozilla', 'native-messaging-hosts'),
'waterfox-current': os.path.join(home_path, '.waterfox', 'native-messaging-hosts'),
}
filename = 'open_with.json'

Expand Down Expand Up @@ -112,6 +114,9 @@ def _read_desktop_file(path):

def find_browsers():
apps = [
'brave',
'brave-browser',
'brave-browser-dev',
'Chrome',
'Chromium',
'chromium-browser',
Expand All @@ -123,6 +128,7 @@ def find_browsers():
'Opera',
'SeaMonkey',
'seamonkey',
'Waterfox Current',
]
paths = [
os.path.join(os.getenv('HOME'), '.local/share/applications'),
Expand Down

0 comments on commit 7510cb2

Please sign in to comment.