From 2e99fcf2935fe214fce255c93783f4d32c2668d0 Mon Sep 17 00:00:00 2001 From: sepples <72217195+sepples@users.noreply.github.com> Date: Wed, 3 Aug 2022 11:24:12 +0000 Subject: [PATCH] Add support for LibreWolf --- webextension/native/open_with_linux.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webextension/native/open_with_linux.py b/webextension/native/open_with_linux.py index 75079d9..5ed7959 100755 --- a/webextension/native/open_with_linux.py +++ b/webextension/native/open_with_linux.py @@ -53,6 +53,7 @@ def install(): 'chromium': os.path.join(home_path, '.config', 'chromium', 'NativeMessagingHosts'), 'firefox': os.path.join(home_path, '.mozilla', 'native-messaging-hosts'), 'thunderbird': os.path.join(home_path, '.thunderbird', 'native-messaging-hosts'), + 'librewolf': os.path.join(home_path, '.librewolf', '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,8 @@ def find_browsers(): 'Opera', 'SeaMonkey', 'seamonkey', + 'LibreWolf', + 'librewolf', ] paths = [ os.path.join(os.getenv('HOME'), '.local/share/applications'),