connecting a non-auto interface, automatically
Mark Shuttleworth
mark at ubuntu.com
Tue Feb 7 15:05:36 UTC 2017
On 07/02/17 14:43, Simon Fels wrote:
> On 07.02.2017 15:36, knitzsche wrote:
>> What is the approach to connect interfaces that are not auto-connecting
>> without user intervention?
>>
>> That is, there's a snap (built into an image) that declares the
>> log-observe plug. Log-observe interface does not auto-connect [1]. In
>> this product, the user does not have a console, so they cannot connect
>> the snap plug/interface.
>>
>> So, how does one configure the system to connect sthis? Via the gadget
>> snap prepare-device hook script perhaps?
> You can ask at the store level to get a snap-declaration for the snap
> which allows auto-connection of particular plugs just for your snap.
>
> I am not sure if this can be store/brand/model specific.
...and IIRC the intent is that the gadget snap should allow you to
specify this behavior on your own device, regardless of store policy.
In short:
* if you made the device, you decide
* if you own the device (you have root), you decide
* otherwise, the store sets default behavior
Mark
More information about the Snapcraft
mailing list