I’ve been trying to make a PoC of the content interface https://github.com/joedborg/snap-content-interface-test
Very basically, I’m trying to get a file snapped in the provider (hippo-food
) to appear in the consumer (hungry-hippo
). In this instance, it’s food
.
I can see the food
file is in the hippo-food
snap:
➜ ll -h /snap/hippo-food/current/
total 1.0M
-rw-rw-r-- 1 root root 1.0M Jun 9 15:00 food
But, when I connect the interface
snap connect hungry-hippo:mouth hippo-food:food
…the file does not seem to end up in $SNAP_COMMON
, as specified here https://github.com/joedborg/snap-content-interface-test/blob/master/consumer/snap/snapcraft.yaml#L14
➜ ll -h /var/snap/hungry-hippo/common
total 0
Have I misunderstood how this is meant to work? On top of this, I’d like to know if I can specify a hook to act upon the file, in the consuming snap, when the connection is made.
Many thanks,
Joe