-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Pass command line credentials and key files to single instance #2089
Comments
Good idea |
Duplicate of #1405 |
No, this is definitely not a duplicate of #1405 ! The scenario in #1405 is about starting keepassxc with the -pw-stdin argument. That works fine (as stated above). However, this issue is about passing the -pw-stdin argument to an already running instance of keepassxc so that a database can automatically be opened when a dbus event is triggered or when unlocking the session. |
Sorry, missed that in the first comment :) |
#6143
The trick is knowing which key goes with which database that is why I suggest being able to add a database/key single command and add talk to a running process and add them in an open state. keepassxc /path/to/database01.kdbx -k /home/jdoe/keyfile01.key --background --minimized
I will donate an other 150 euro if the above features get implemented in the KeePassXC 2.6.5 release. Jelle de Jong |
Some KDE apps have command line arguments to run in single-instance mode. For example, But that said, if trying to open a 2nd instance just gives an error, then an extra switch isn't useful. It should just be the default behavior instead of the error. |
What if keepassxc itself would send dbus messages a.la. https://github.com/keepassxreboot/keepassxc/wiki/Using-DBus-with-KeePassXC to unlock the database in the running instance? It doesn't sound complicated, but then I don't know a thing about the code base :-) (Btw, the dbus examples in the linked wiki page leak the password in process listings. Eek!) |
Dbus only exists on linux. |
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)
Operating system: Arch Linux, Gnome
The text was updated successfully, but these errors were encountered: