ususdei / qute-keepassxc

Qutebrowser userscript to fetch credentials from KeepassXC password database
MIT License
54 stars 10 forks source link

show keepassxc login if database is locked #12

Closed jrpie closed 3 years ago

jrpie commented 3 years ago

The browser plugin for Firefox / Chrome pops up the keepassxc login screen if the database is locked while trying to insert a password, which is quite convenient in my opinion. Unfortunately keepassxc-protocol doesn't seem to implement a message for that. The approach of simply calling keepassxc seems rather blunt but works for me.

ususdei commented 3 years ago

Hmm, I deliberately left this issue to the user, as I could not find a general solution to that.

For me, e.g. this approach does not work. I'm using i3wm and keep keepassxc on a separate workspace at all times. So depending on the configuration, calling keepassxc again would either spawn a second instance of it (which I definitely do not want) or just error out and make the original keepassxc window urgent (which doesn't really help either - I know where it is).

I might check the official keepassxc-plugins again to see what they are doing and try a few settings withing keepassxc to find a workflow that also suits me.

jrpie commented 3 years ago

I think I now found out how to do this properly: There is an undocumented option named triggerUnlock, which seems to do the trick without any shady hacks. Now everything should work just fine. Sorry for the premature pull request.

ususdei commented 3 years ago

That's it, nice!

Many thanks :-)