Intropsecting Connected Slots/Plugs From Within a Snap
gustavo.niemeyer at canonical.com
Wed Aug 24 15:29:17 UTC 2016
There will be a proper way to do that soonish, via snapctl. It's a new tool
and mechanism that is being developed under the hook support theme, but
that will be generalized after that so that we can have richer interactions
between snaps and their mothership.
On Wed, Aug 24, 2016 at 12:24 PM, Christopher Arges <
chris.j.arges at canonical.com> wrote:
> From within a snapped program I'd like to check if all my slots/plugs are
> connected properly. This way I can either handle functionality different if
> something is not connected, or inform the user to connect before proceeding.
> I'm guessing the snapd-control interface contains this functionality, but
> then that requires that the snapd-control interface is also manually
> connected. In addition I'll need to write client code to connect to snapd
> and query it.
> Is there a better way to handle this? It would be great if one could
> introspect connected interfaces for the snap itsself without additional
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
gustavo @ http://niemeyer.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Snapcraft