Repository navigation
Open
Labels
0.kind: bugSomething is broken
Description
Describe the bug
Steps To Reproduce
Steps to reproduce the behavior:
- Go to settings
- Enable "Unlock with system authentication" (PAM/biometric auth)
- Get a warning about Automatic setup not being available, and the setting gets reset after the next vault lock
Expected behavior
Screenshots
Additional context
Seems like this is a common issue on sandboxed installations of BW desktop?
Metadata
fetching path input 'path:/nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source'
- system:
"x86_64-linux" - host os:
Linux 6.12.5, NixOS, 25.05 (Warbler), 25.05.20241219.d70bd19 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Lix, like Nix) 2.91.1 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/user/.config/nix/nix.conf:/nix/store/qd1p658xdl2wl6hqk01n6gcphhka8snr-plasma-workspace-6.2.4/etc/xdg/nix/nix.conf:/nix/store/7zl907185jz528xzmifaarnqkyrkdx13-kglobalacceld-6.2.4/etc/xdg/nix/nix.conf:/nix/store/m3jp6qy9asm38m8l5cnryck7c5akfivw-baloo-6.8.0/etc/xdg/nix/nix.conf:/nix/store/qd1p658xdl2wl6hqk01n6gcphhka8snr-plasma-workspace-6.2.4/etc/xdg/nix/nix.conf:/nix/store/7zl907185jz528xzmifaarnqkyrkdx13-kglobalacceld-6.2.4/etc/xdg/nix/nix.conf:/nix/store/m3jp6qy9asm38m8l5cnryck7c5akfivw-baloo-6.8.0/etc/xdg/nix/nix.conf:/home/user/.config/kdedefaults/nix/nix.conf:/nix/store/qd1p658xdl2wl6hqk01n6gcphhka8snr-plasma-workspace-6.2.4/etc/xdg/nix/nix.conf:/nix/store/7zl907185jz528xzmifaarnqkyrkdx13-kglobalacceld-6.2.4/etc/xdg/nix/nix.conf:/nix/store/m3jp6qy9asm38m8l5cnryck7c5akfivw-baloo-6.8.0/etc/xdg/nix/nix.conf:/nix/store/qd1p658xdl2wl6hqk01n6gcphhka8snr-plasma-workspace-6.2.4/etc/xdg/nix/nix.conf:/nix/store/7zl907185jz528xzmifaarnqkyrkdx13-kglobalacceld-6.2.4/etc/xdg/nix/nix.conf:/nix/store/m3jp6qy9asm38m8l5cnryck7c5akfivw-baloo-6.8.0/etc/xdg/nix/nix.conf:/home/user/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/user/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/user/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/user/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/user/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/873hdnqclw6c5kqax9mmw57a72rn4c3h-lix-2.91.1/share - nixpkgs:
/nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source
Notify maintainers
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
Reacted by Lunyaaa~, Ondra Janoška, Danny Navarro, Minionflo, Louis R, Florian Hye, turtton, HiperDoo, Jairo Llopis, ironmoon and 25 more
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is broken

Activity
lspita commentedon Dec 6, 2025
any chance this gets fixed?
pinage404 commentedon Dec 17, 2025
Hi,
The current package's version is
2025.12.0nixpkgs/pkgs/by-name/bi/bitwarden-desktop/package.nix
Line 37 in 9adacfa
It applies a patch related to biometric
nixpkgs/pkgs/by-name/bi/bitwarden-desktop/package.nix
Line 48 in 9adacfa
The patch hardcode a verification in the file
apps/desktop/src/key-management/biometrics/os-biometrics-linux.service.tson line115nixpkgs/pkgs/by-name/bi/bitwarden-desktop/dont-auto-setup-biometrics.patch
Line 5 in 9adacfa
In Bitwarden source, at the specified release version, in the specified file, at line 115, there is something not related
https://github.com/bitwarden/clients/blob/desktop-v2025.12.0/apps/desktop/src/key-management/biometrics/os-biometrics-linux.service.ts#L115
The line that should be changed is lower in the file, near the line
151https://github.com/bitwarden/clients/blob/desktop-v2025.12.0/apps/desktop/src/key-management/biometrics/os-biometrics-linux.service.ts#L151
I don't know how to generate a patch file
@amarshall you are the maintainer, could you update the patch please ?
pinage404 commentedon Dec 17, 2025
I looked how to generate the patch, i will open a PR
bitwarden-desktop: fix biometrics
Aleksanaa commentedon Dec 18, 2025
Does #425477 fix this or not? What's the issue now?
griffi-gh commentedon Dec 18, 2025
no, pretty sure that only fixes communication between the desktop app and the browser
griffi-gh commentedon Dec 18, 2025
amarshall commentedon Dec 18, 2025
I don’t use this functionality, but afaik the patch is just so it doesn’t incorrectly try to do the automatic setup (that doesn’t work). Manual setup is still required, but I believe it’s a system thing not a package thing.
lspita commentedon Mar 24, 2026
Is there any chance this will get fixed?
bvngee commentedon May 11, 2026
Biometric unlock is currently working for me. However, two things to keep in mind:
environment.systemPackages.~/.mozillamust already exist before opening bitwarden-desktop, so that bitwarden-desktop can pass it's check to automatically install the native-messaging-hosts file. See code bitwarden code here (it's still the same in main but a little less clear).Also note that according to Quexten's comment here, biometric unlock only works after bitwarden-desktop has been unlocked manually with the master-password at least once, i.e. on startup. After that, biometric unlock works perfectly.
devurandom commentedon May 11, 2026
I can confirm. This was supposed to be fixed by #425477, but it's actually not, see also #347350 (comment).
baodrate commentedon Sep 16, 2026
note that in the current releases of firefox this should be
${XDG_CONFIG_HOME:-$HOME/.config}/mozilla/but firefox apparently is still looking in~/.mozilla/native-messaging-hosts1, so we can't even patch bitwarden to look in the correct directoryFootnotes
see: https://bugzilla.mozilla.org/show_bug.cgi?id=2005167 ↩