Skip to content

Pass command line credentials and key files to single instance #2089

@kareliot

Description

@kareliot

It would be very nice to have a way to automatically unlock a database after unlocking the session. Especially for cases where the setting "Close database when session is locked" is turned on.

Expected Behavior

Provide a way to open/unlock a database of an running instance of keepassxc, similar to the method used for autostart on login (which on gnome/linux would be something like:"secret-tool lookup 'keepass' 'passwords' | keepassxc --pw-stdin path/to/database.kdbx")

Current Behavior

If I try to open a database (with the above --pw-stdin command) when an instance of keepassxc is already running, I just get "Another instance of KeePassXC is already running"

Possible Solution

Provide a way of sending a password (for a closed database) to a running instance of keepassxc via the command line

Steps to Reproduce (for bugs)

  1. start keepassxc with closed database (such as you would have after automatically locking the session of the os)
  2. try to open a database from the command line with the --pw-stdin command
  3. You get a message at the terminal telling you that another instance of keepassxc is already running

Operating system: Arch Linux, Gnome

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions