Is there a hook or DBUS event for unlocking the database? #7770
Unanswered
BettaGeorge
asked this question in
Q&A
Replies: 1 comment 4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all!
Short version: I would like the ability to execute a bash script after I unlock my database. Is this possible?
Long version: I use keepassxc as my keyring together with secret-tool. When I log into any of my machines, the first thing that starts is the keepassxc "unlock database" prompt, after which everything is great and neatly integrated.
Except my Nextcloud. My current workflow is: log in to my machine, enter the keepassxc master passphrase, hit enter, then manually open up a command prompt and start the Nextcloud client. Nextcloud sees a secret service running, fetches its login information from it, and is happy.
Obviously, that last step is terribly bothersome. However, if I start Nextcloud before the database is unlocked, it finds no secret service running and instantly launches my browser, prompting for a password. Hence I cannot have Nextcloud in my autostart. And because the keepassxc process does (of course) not terminate after unlocking the database, a simple "keepassxc; nextcloud" is no solution either.
Hence I would ideally like to be able to detect when the keepassxc database has been unlocked and react by automatically invoking Nextcloud.
Alternatively, I would settle for teaching Nextcloud to invoke keepassxc instead of opening a browser window.
There is no other keyring or secret service running on my system; I am on Manjaro GNU/Linux with lightdm as my display manager and EXWM as my window manager.
Any advice is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions