Skip to content

Commit

Permalink
Add support for librewolf on linux (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirodriguezm authored Nov 10, 2021
1 parent 8e32908 commit d73f45c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,15 @@ 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 |
| `make hosts-vivaldi-user` | Configure browserpass for Vivaldi browser, for the current user only |
| `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 |
Expand Down

0 comments on commit d73f45c

Please sign in to comment.