Content interfaces usage


#1

Hi, I have just started developing small applications on snap and i want to share an executable between two snaps. I followed the steps mentioned in @niemeyer’s post The content interface, however I believe I am missing something. I have an executable created in snap1, snap2 is unable to access it. I am adding the yaml files of both the snaps.

shareapp is the snap which is supposed to share an executable with the accessapp


name: shareapp
version: '0.1’
summary: app exposing an exec
description:
This shareapp is an application which exposes an exec to other apps.

grade: devel
confinement: strict

parts:
share-exec:
plugin: nil

slots:
content:
content: executables
read:
- $SNAP_DATA

apps:
shareapp:
command: hello


name: accessapp
version: '0.1’
summary: app accessing an exec shared by another app
description:
This accessapp is an application which accesses an exec shared by other apps.

grade: stable
confinement: strict

parts:
share-exec:
plugin: nil

plugs:
content:
content: executables
target: $SNAP_DATA

apps:
accessapp:
command: test