One snap to connect them all (or: the plugin story)
Kyle Fazzari
kyle.fazzari at canonical.com
Thu Feb 9 16:12:14 UTC 2017
On 02/09/2017 01:04 AM, Didier Roche wrote:
> Ok, sorry for the catchy email title but couldn't resist :)
>
> So, I'm in the situation where one snap would need to get configuration
> and access to some files from other snaps. It's really similar to our
> plugin story: even if in that case, we are talking about optional
> configuration and files from one or multiple snaps shared with a single
> one collecting them all.
>
> I can see 2 options in the snapd philosophy:
>
> - Content sharing. Sounds like it matches exactly the purpose of it.
> However, even disregarding the manual connection that will be needed, we
> are stuck on the fact that it's limited to one connection for a given
> slot. If I want to share configuration and files from 3 snaps to the
> master one, I can't do 3 times:
> $ snap connect snap1:config my-master-snap:config
> $ snap connect snap2:config my-master-snap:config
> $ snap connect snap2:config my-master-snap:config
>
> One way would be to create different slot names:
> $ snap connect snap1:config my-master-snap:config1
> $ snap connect snap2:config my-master-snap:config2
> $ snap connect snap2:config my-master-snap:config3
>
> But this doesn't help on the ease of use (the notice is then for people
> "find the first available slot"… Not really user-friendly) nor in the
> scalibity (fixed number of slots…)
Does https://bugs.launchpad.net/snapd/+bug/1655125 cover this case?
--
Kyle Fazzari (kyrofa)
Software Engineer
Canonical Ltd.
kyle at canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170209/fd9f1a4d/attachment.sig>
More information about the Snapcraft
mailing list