-
Notifications
You must be signed in to change notification settings - Fork 0
Auto-unlocking does not trigger pluginHost.MainWindow.FileOpened #4
Description
Hi,
I'm back from KPXC and trying a bunch of plugins for KP. One that I've found great is KeeAgent, which runs an SSH agent and automatically loads keys into it from the database after it's been opened. And then I've found yours.
Problem: they do not mix. When yours auto-unlock a database, SSH keys are not loaded into the agent.
It seems KeeAgent simply loads keys when pluginHost.MainWindow.FileOpened fires.
Whereas it seems (I've never worked with the plugin API) that you unlock the underlying connection to the DB so that the UI never has to unlock it.
KeePassProtectedKeyStore/KeePassProtectedKeyStore/KeePassProtectedKeyStoreExt.cs
Line 278 in 47ae9ab
| pd.Open(connectionInfo, compositeKey, null); |
Both seem reasonable, but operate at different levels.
As FileOpened is public, can you consider triggering it?
Now, whether using both plugins is a good idea...
Thanks for your work.