Skip to content

rbw register: sequential pinentry-gnome3 dialogs prevent copy-pasting credentials between prompts #350

Description

@gitmpr

Problem

rbw register prompts for client_id and client_secret via two sequential pinentry dialogs. With pinentry-gnome3, each dialog grabs focus and the next one opens immediately after the previous is dismissed. This makes it impossible to switch to another window to copy the client_secret after entering the client_id.

Steps to reproduce

  1. Configure rbw with pinentry-gnome3
  2. Run rbw register
  3. Enter client_id in the first GNOME pinentry dialog and confirm
  4. The second dialog (for client_secret) opens immediately
  5. There is no opportunity to switch to the browser/vault to copy the client_secret

Expected behavior

The user should be able to retrieve both credentials from the Bitwarden web vault and enter them into the respective prompts without the dialogs competing for focus. Either:

  • Both fields presented in a single dialog, or
  • A brief pause / user-triggered continuation between prompts, or
  • Support for passing credentials via stdin or environment variables to allow scripted input

Actual behavior

Second dialog opens before the user can switch windows, forcing the user to have both values memorized or visible on screen simultaneously before starting the command.

Workaround

Use pinentry-curses instead of pinentry-gnome3. The curses dialog runs inline in the terminal and does not grab window focus, allowing free window switching between prompts.

Environment

  • rbw 0.9.x
  • Bitwarden cloud
  • GNOME / Wayland (NixOS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions