questions about connecting bluez interface
Simon Fels
simon.fels at canonical.com
Thu Oct 27 11:36:37 UTC 2016
Hey Robert,
the bluez plug and slot are now auto-connected as we put a snap-declaration
for it on the store side in place. That assertion tells snapd that the
bluez snap should get its slots/plugs automatically connected. But this
only applies for the bluez snap coming from the store. If you install one
you built locally you don't have the signed assertion from the store which
would tell snapd to auto-connect the relevant plugs and slots.
However I am not sure why the interface connection is denied when you do it
manually. @Samuele, Jamie: Any idea?
regards,
Simon
On Thu, Oct 27, 2016 at 6:54 AM, Robert Liu <robert.liu at canonical.com>
wrote:
> Hi list,
>
> I have 2 questions about connecting bluez interface.
> In Interfaces reference [1], it said the bluez is not auto-connected. But
> after I installed the bluez snap, the bluez interface is connected. Do I
> misunderstnad the definition?
>
> root at localhost:/tmp# snap install --edge bluez
> bluez (edge) 5.37-2 from 'canonical' installed
> root at localhost:/tmp# snap interfaces
> Slot Plug
> bluez:service bluez:client
>
>
> The other question is that I cannot connect the interface when using my
> own bluez snap. Should I sign my snap to make this work?
>
> root at localhost:/tmp# snap install --dangerous bluez_5.37-2_amd64.snap
> bluez 5.37-2 installed
> root at localhost:/tmp# snap interfaces
> Slot Plug
> bluez:service -
> [snipped]
> - bluez:client
> root at localhost:/tmp# snap connect bluez:client bluez:service
> error: cannot perform the following tasks:
> - Connect bluez:client to bluez:service (connection denied by slot rule of
> interface "bluez")
>
> [1] http://snapcraft.io/docs/reference/interfaces
>
> BR,
> Robert
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161027/b6b74623/attachment-0001.html>
More information about the Snapcraft
mailing list