diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-19 20:35:31 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-19 20:39:29 +0200 |
| commit | 04bfc72cc44f2af97c2a9b3f3b30b2122fbdba7a (patch) | |
| tree | 2154db33fb3726255aee5e1786b07faf37d1bb60 /.local | |
| parent | 44623eda3dbb7eb230d24495d9b8115fcd2bc9e0 (diff) | |
| download | dotfiles-04bfc72cc44f2af97c2a9b3f3b30b2122fbdba7a.tar.gz dotfiles-04bfc72cc44f2af97c2a9b3f3b30b2122fbdba7a.zip | |
feat(dotfiles): link browserpass Firefox native host on sync
pacman browserpass ships the manifest under /usr/lib/browserpass/hosts/
but installs it nowhere a browser scans, so the native host never
connects after a fresh install.
Add link_browserpass_host(): delegates to the upstream-supported
'make -C /usr/lib/browserpass hosts-firefox-user' target (symlinks the
packaged manifest into ~/.mozilla/native-messaging-hosts/, idempotent).
Guarded on the packaged Makefile existing, so a declined pacman prompt
skips it instead of breaking sync. Called from sync after sync_deps;
make is already present via base-devel.
Verified: bash -n passes; target runs idempotently, exit 0, link
resolves to the packaged manifest.
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/dotfiles | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/dotfiles b/.local/bin/dotfiles index ae97ce8..54a214e 100755 --- a/.local/bin/dotfiles +++ b/.local/bin/dotfiles @@ -44,6 +44,14 @@ sync_mdformat() { fi } +link_browserpass_host() { + # Upstream-supported install of the Firefox native messaging host + # (symlinks the packaged manifest into ~/.mozilla/native-messaging-hosts/). + # Skips when browserpass isn't installed (pacman prompt declined). + [[ -f /usr/lib/browserpass/Makefile ]] || return 0 + make --directory=/usr/lib/browserpass hosts-firefox-user +} + build_and_install_nvim() { local src_dir="$HOME/.local/share/dotfiles/deps/neovim" local build_dir="$HOME/.local/share/nvim" @@ -110,6 +118,7 @@ sync) vim-language-server ) sync_deps "${deps[@]}" + link_browserpass_host sync_nvim sync_mdformat ;; |
