Intropsecting Connected Slots/Plugs From Within a Snap
Gustavo Niemeyer
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
> connections.
>
> Thanks,
> --chris
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
> an/listinfo/snapcraft
>
>
--
gustavo @ http://niemeyer.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160824/c9f9d607/attachment.html>
More information about the Snapcraft
mailing list