Skip to content

Auto-unlocking does not trigger pluginHost.MainWindow.FileOpened #4

@KoltesDigital

Description

@KoltesDigital

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.

https://github.com/dlech/KeeAgent/blob/431b32a63436e4e8813036aeec41cbd7b4168233/KeeAgent/KeeAgentExt.cs#L199

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.

pd.Open(connectionInfo, compositeKey, null);

Both seem reasonable, but operate at different levels.

As FileOpened is public, can you consider triggering it?

https://github.com/wrouesnel/keepass/blob/29a7229f95cf4498b7e3b891573e2a0ed82883f4/KeePass/Forms/MainForm_Functions.cs#L2290

Now, whether using both plugins is a good idea...

Thanks for your work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions