[electron-chrome-web-store] installed callback
Currently there is no way to keep track of the installed extensions (other than reading from disk). It would be great if electron-chrome-web-store emitted an event with the extension details (manifest, installation id, folder) so I can keep track of installed extensions and display them in a management interface where user can manually update or remove them.
Electron's session.getAllExtensions contains this information. Is there anything missing from that API?
That doesn't trigger when you press the "install in X" button.
That doesn't trigger when you press the "install in X" button.
The session 'extension-loaded' event should be emitted whenever an extension is loaded into the session. This will be emitted when an extension is installed.
Hey @Kilian, I'm planning to add an afterInstall as an option when calling installChromeWebStore.
Would that fit your use case?
@iamEvanYT yeah. My main use case is making sure extensions are installed in all sessions. There'd be multiple solutions for that, but this works!
Alright. Submitting a PR right now.
The session 'extension-loaded' event should be emitted whenever an extension is loaded into the session. This will be emitted when an extension is installed.
@samuelmaddock / other readers: this will also be emitted every app start when electron-chrome-web-store loads the already installed extensions, so it's not a good signal for "newly installed extension".