<div dir="ltr"><div>Hey Robert,<br></div><div><br></div>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. <div><br></div><div>However I am not sure why the interface connection is denied when you do it manually. @Samuele, Jamie: Any idea?</div><div><br></div><div>regards,</div><div>Simon</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 27, 2016 at 6:54 AM, Robert Liu <span dir="ltr"><<a href="mailto:robert.liu@canonical.com" target="_blank">robert.liu@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="m_8350222893596856721gmail_msg"><div dir="ltr" class="m_8350222893596856721gmail_msg">Hi list,<div class="m_8350222893596856721gmail_msg"><br class="m_8350222893596856721gmail_msg"></div><div class="m_8350222893596856721gmail_msg">I have 2 questions about connecting bluez interface.</div><div class="m_8350222893596856721gmail_msg">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?</div><div class="m_8350222893596856721gmail_msg"><br class="m_8350222893596856721gmail_msg"></div><div class="m_8350222893596856721gmail_msg"><div class="m_8350222893596856721gmail_msg">root@localhost:/tmp# snap install --edge bluez<br class="m_8350222893596856721gmail_msg"></div><div class="m_8350222893596856721gmail_msg">bluez (edge) 5.37-2 from 'canonical' installed</div><div class="m_8350222893596856721gmail_msg">root@localhost:/tmp# snap interfaces</div><div class="m_8350222893596856721gmail_msg">Slot Plug</div><div class="m_8350222893596856721gmail_msg">bluez:service bluez:client</div><div class="m_8350222893596856721gmail_msg"><br class="m_8350222893596856721gmail_msg"></div><div class="m_8350222893596856721gmail_msg"><br class="m_8350222893596856721gmail_msg"></div></div><div class="m_8350222893596856721gmail_msg">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?</div><div class="m_8350222893596856721gmail_msg"><br class="m_8350222893596856721gmail_msg"></div><div class="m_8350222893596856721gmail_msg"><div class="m_8350222893596856721gmail_msg">root@localhost:/tmp# snap install --dangerous bluez_5.37-2_amd64.snap </div><div class="m_8350222893596856721gmail_msg">bluez 5.37-2 installed</div><div class="m_8350222893596856721gmail_msg">root@localhost:/tmp# snap interfaces</div><div class="m_8350222893596856721gmail_msg">Slot Plug</div><div class="m_8350222893596856721gmail_msg">bluez:service -</div><div class="m_8350222893596856721gmail_msg"> [snipped]</div><div class="m_8350222893596856721gmail_msg">- bluez:client<br class="m_8350222893596856721gmail_msg"></div><div class="m_8350222893596856721gmail_msg">root@localhost:/tmp# snap connect bluez:client bluez:service<br class="m_8350222893596856721gmail_msg"></div><div class="m_8350222893596856721gmail_msg">error: cannot perform the following tasks:</div><div class="m_8350222893596856721gmail_msg">- Connect bluez:client to bluez:service (connection denied by slot rule of interface "bluez")</div><div class="m_8350222893596856721gmail_msg"><br class="m_8350222893596856721gmail_msg"></div></div><div class="m_8350222893596856721gmail_msg">[1] <a href="http://snapcraft.io/docs/reference/interfaces" class="m_8350222893596856721gmail_msg" target="_blank">http://snapcraft.io/docs/<wbr>reference/interfaces</a><br class="m_8350222893596856721gmail_msg"></div><div class="m_8350222893596856721gmail_msg"><br class="m_8350222893596856721gmail_msg"></div><div class="m_8350222893596856721gmail_msg">BR,</div><div class="m_8350222893596856721gmail_msg">Robert</div></div></div></div></div>
<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br></div>