Skip to content

bitwarden-desktop: Biometric login not supported #371479

Open

Description

@griffi-gh

Describe the bug

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go to settings
  2. Enable "Unlock with system authentication" (PAM/biometric auth)
  3. Get a warning about Automatic setup not being available, and the setting gets reset after the next vault lock

Expected behavior

Screenshots

image

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

@amarshall


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: bug
    on Jan 6, 2025
  2. added
    2.status: stale
    on Jul 5, 2025
  3. lspita commented on Dec 6, 2025

    @lspita

    any chance this gets fixed?

  4. removed
    2.status: stale
    on Dec 6, 2025
  5. pinage404 commented on Dec 17, 2025

    @pinage404
    Contributor

    Hi,

    The current package's version is 2025.12.0

    It applies a patch related to biometric

    ./dont-auto-setup-biometrics.patch

    The patch hardcode a verification in the file apps/desktop/src/key-management/biometrics/os-biometrics-linux.service.ts on line 115

    @@ -115,7 +115,7 @@ export default class OsBiometricsServiceLinux implements OsBiometricService {

    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 151
    https://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 ?

  6. pinage404 commented on Dec 17, 2025

    @pinage404
    Contributor

    I looked how to generate the patch, i will open a PR

  7. added a commit that references this issue on Dec 17, 2025
    82a0366
  8. Aleksanaa commented on Dec 18, 2025

    @Aleksanaa
    Member

    Does #425477 fix this or not? What's the issue now?

  9. griffi-gh commented on Dec 18, 2025

    @griffi-gh
    MemberAuthor

    Does #425477 fix this or not? What's the issue now?

    no, pretty sure that only fixes communication between the desktop app and the browser

  10. griffi-gh commented on Dec 18, 2025

    @griffi-gh
    MemberAuthor
    Image Image
  11. amarshall commented on Dec 18, 2025

    @amarshall
    Member

    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.

  12. lspita commented on Mar 24, 2026

    @lspita

    Is there any chance this will get fixed?

  13. bvngee commented on May 11, 2026

    @bvngee
    Contributor

    Biometric unlock is currently working for me. However, two things to keep in mind:

    • Due to bug: Polkit actions registered in .nix-profile are not added to Polkit nix-community/home-manager#5559, if you've installed bitwarden via home-manager then it will not work. For the bitwarden-desktop polkit policy file to be correctly installed, installed it via environment.systemPackages.
    • ~/.mozilla must 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.

    Image Image
  14. devurandom commented on May 11, 2026

    @devurandom
    Contributor

    ~/.mozilla must 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).

    I can confirm. This was supposed to be fixed by #425477, but it's actually not, see also #347350 (comment).

  15. baodrate commented on Sep 16, 2026

    @baodrate
    Contributor
    • ~/.mozilla must already exist before opening bitwarden-desktop, so that bitwarden-desktop can pass it's check to automatically install the native-messaging-hosts file

    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 directory

    Footnotes

    1. see: https://bugzilla.mozilla.org/show_bug.cgi?id=2005167 ↩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions