From 04bfc72cc44f2af97c2a9b3f3b30b2122fbdba7a Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Tue, 19 May 2026 20:35:31 +0200 Subject: 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. --- .local/bin/dotfiles | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.local') 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 ;; -- cgit v1.3.1