Comment 3 for bug 1655125

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

I'm not sure I completely understand the questions, but I'll take a crack at them. Please ask for clarification if needed.

> - How would the content be made available inside both snaps?

At least for the systems with which I'm familiar, there's some sort of plugin directory in the main app. In that case, I'm not sure any content would need to be made available inside the plugin snap. The plugin itself would need to be mounted into the main app's "plugin space."

> - Which commands would be used to establish the relation? Are these reasonable or awkward?

Again, in the case of of the systems with which I'm familiar, if the plugins are available in the plugin directory, the main app provides a way to enable them. Gedit has a menu where you can view available plugins and enable them, as does Nextcloud.

> - Which events will either snap need to be notified about for things to work?

If Nextcloud were made aware of a new plugin being added, it could automatically enable it. I assume other systems work similarly. This could be done via an interface hook. I think it would probably be more important to notify the main app when a plugin was removed, since once it's added it'll probably continue looking for it. Still an interface hook, I imagine.