keepassxreboot/keepassxc

Pass command line credentials and key files to single instance

Open

#2,089 opened on Jul 3, 2018

View on GitHub
 (8 comments) (13 reactions) (1 assignee)C++ (27,139 stars) (1,797 forks)batch import
help wanted

Description

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

Contributor guide