Inter and Intra Snap communication
Michael Hall
mhall119 at ubuntu.com
Thu Mar 23 18:41:43 UTC 2017
Hi Jenny,
Here's a link to the documentation showing how to include more than one
executable in your snap package, as Sergio and Gustavo already mentioned:
https://snapcraft.io/docs/build-snaps/metadata
In it you will see that the apps: stanza can have multiple children, one
for each executable you want to expose outside of your snap. These will
take the form of /snap/bin/<snap>.<app> and can be called from the
command-line. If <snap> == <app> it will condense down to just
/snap/bin/<snap> to be cleaner.
Michael Hall
mhall119 at ubuntu.com
On 03/23/2017 02:20 PM, Gustavo Niemeyer wrote:
> Hi Jenny,
>
> Yes, what you want to do is really to have both of them in the same snap.
> That's super simple, and it's fine that they are different languages,
> different processes, etc.
>
>
> On Thu, Mar 23, 2017 at 2:36 PM, Jenny Murphy <jenny.murphy at episensor.com>
> wrote:
>
>> Hi,
>> I currently have a java application running in a snap. As part of some
>> added functionality my java application will need to communicate with a C
>> program executable. We are weighing up the options of how this would work.
>> The probably obvious way is to build a new snap which contains the C
>> program executable. Then we need some way of inter snap communication.
>>
>> So my first question is what is recommend for INTER snap communication, how
>> is it supposed to work?
>>
>>
>> Alternatively could one snap contain two binaries? In this way could
>> traditional linux inter process communication methods be used? This is my
>> second question.
>>
>> Thanks in advance.
>>
>> --
>> *Jenny Murphy*
>> *EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland*
>> jenny.murphy at episensor.com <jenny.murphy at episensor.com> t | +353 (0) 61
>> 512 511 w | http://www.episensor.com
>> --
>> Snapcraft mailing list
>> Snapcraft at lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>> mailman/listinfo/snapcraft
>>
>
>
>
More information about the Snapcraft
mailing list