Add support for librewolf on linux (#113)
This commit is contained in:
19
Makefile
19
Makefile
@@ -328,6 +328,25 @@ hosts-firefox-user:
|
||||
*) echo "The operating system $(OS) is not supported"; exit 1 ;; \
|
||||
esac
|
||||
|
||||
.PHONY: hosts-librewolf
|
||||
hosts-librewolf:
|
||||
@case $(OS) in \
|
||||
Linux) mkdir -p "$(LIB_DIR)/librewolf/native-messaging-hosts/"; \
|
||||
ln -sfv "$(LIB_DIR)/browserpass/hosts/firefox/$(APP_ID).json" "/usr/lib/librewolf/native-messaging-hosts/$(APP_ID).json"; \
|
||||
[ -e "/usr/lib/librewolf/native-messaging-hosts/$(APP_ID).json" ] || echo "Error: the symlink points to a non-existent location" >&2; \
|
||||
;; \
|
||||
*) echo "The operating system $(OS) is not supported"; exit 1 ;; \
|
||||
esac
|
||||
|
||||
.PHONY: hosts-librewolf-user
|
||||
hosts-librewolf-user:
|
||||
@case $(OS) in \
|
||||
Linux|*BSD) mkdir -p "${HOME}/.librewolf/native-messaging-hosts/"; \
|
||||
ln -sfv "$(LIB_DIR)/browserpass/hosts/firefox/$(APP_ID).json" "${HOME}/.librewolf/native-messaging-hosts/$(APP_ID).json"; \
|
||||
[ -e "${HOME}/.librewolf/native-messaging-hosts/$(APP_ID).json" ] || echo "Error: the symlink points to a non-existent location" >&2; \
|
||||
;; \
|
||||
*) echo "The operating system $(OS) is not supported"; exit 1 ;; \
|
||||
esac
|
||||
# Browser-specific policies targets
|
||||
|
||||
.PHONY: policies-chromium
|
||||
|
@@ -165,6 +165,7 @@ If you provided `PREFIX` and/or `DESTDIR` while running `make install`, remember
|
||||
| -------------------------- | ------------------------------------------------------------------------------------ |
|
||||
| `make hosts-chromium-user` | Configure browserpass for Chromium browser, for the current user only |
|
||||
| `make hosts-firefox-user` | Configure browserpass for Firefox browser, for the current user only |
|
||||
| `make hosts-librewolf-user`| Configure browserpass for Librewolf browser, for the current user only |
|
||||
| `make hosts-chrome-user` | Configure browserpass for Google Chrome or Opera browsers, for the current user only |
|
||||
| `make hosts-brave-user` | Configure browserpass for Brave browser, for the current user only |
|
||||
| `make hosts-iridium-user` | Configure browserpass for Iridium browser, for the current user only |
|
||||
@@ -172,6 +173,7 @@ If you provided `PREFIX` and/or `DESTDIR` while running `make install`, remember
|
||||
| `make hosts-slimjet-user` | Configure browserpass for Slimjet browser, for the current user only |
|
||||
| `sudo make hosts-chromium` | Configure browserpass for Chromium browser, system-wide |
|
||||
| `sudo make hosts-firefox` | Configure browserpass for Firefox browser, system-wide |
|
||||
| `sudo make hosts-librewolf`| Configure browserpass for Librewolf browser, system-wide |
|
||||
| `sudo make hosts-chrome` | Configure browserpass for Google Chrome or Opera browsers, system-wide |
|
||||
| `sudo make hosts-brave` | Configure browserpass for Brave browser, system-wide |
|
||||
| `sudo make hosts-iridium` | Configure browserpass for Iridium browser, system-wide |
|
||||
|
Reference in New Issue
Block a user