Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.
Closed
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
5 changes: 4 additions & 1 deletion webextension/native/open_with_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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'] = ['[email protected]']
else:
browser_manifest['allowed_origins'] = [
Expand Down Expand Up @@ -112,6 +113,8 @@ def find_browsers():
'Opera',
'SeaMonkey',
'seamonkey',
'LibreWolf',
'librewolf',
]
paths = [
os.path.join(os.getenv('HOME'), '.local/share/applications'),
Expand Down