diff --git a/Makefile b/Makefile index 30a225c..c67cd59 100644 --- a/Makefile +++ b/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 diff --git a/README.md b/README.md index f210d0d..f1957d9 100644 --- a/README.md +++ b/README.md @@ -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 |