From d7d9b38b11fb55d3714811c4e13a149c2a9f219c Mon Sep 17 00:00:00 2001 From: Anskrevy <95379591+Anskrevy@users.noreply.github.com> Date: Sun, 10 Apr 2022 23:12:33 -0700 Subject: [PATCH] add support for librewolf --- webextension/native/open_with_linux.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webextension/native/open_with_linux.py b/webextension/native/open_with_linux.py index 75079d9..e15c4b0 100755 --- a/webextension/native/open_with_linux.py +++ b/webextension/native/open_with_linux.py @@ -52,6 +52,7 @@ def install(): 'chrome-unstable': os.path.join(home_path, '.config', 'google-chrome-unstable', 'NativeMessagingHosts'), 'chromium': os.path.join(home_path, '.config', 'chromium', 'NativeMessagingHosts'), 'firefox': os.path.join(home_path, '.mozilla', 'native-messaging-hosts'), + 'librewolf': os.path.join(home_path, '.librewolf', 'native-messaging-hosts'), 'thunderbird': os.path.join(home_path, '.thunderbird', 'native-messaging-hosts'), } filename = 'open_with.json' @@ -62,7 +63,7 @@ def install(): os.mkdir(location) browser_manifest = manifest.copy() - if browser in ['firefox', 'thunderbird']: + if browser in ['firefox', 'thunderbird', 'librewolf']: browser_manifest['allowed_extensions'] = ['openwith@darktrojan.net'] else: browser_manifest['allowed_origins'] = [ @@ -112,6 +113,9 @@ def find_browsers(): 'Opera', 'SeaMonkey', 'seamonkey', + 'librewolf', + 'Librewolf', + 'LibreWolf' ] paths = [ os.path.join(os.getenv('HOME'), '.local/share/applications'),