questions about connecting bluez interface

Robert Liu robert.liu at canonical.com
Thu Oct 27 04:54:04 UTC 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161027/f4176d82/attachment.html>


More information about the Snapcraft mailing list