I want to make a certain file available to another snap-instance. I’ve manager to «connect» them together with slots and plugs, and they can read/write to the given directory.
However, I don’t want the consumer to have access to every file within that location, but only one or more predefined files.
I know that I can use hooks to do some magic when the app connects, but I don’t know what. And I don’t know if it’s even possible.
The file is only supposed to be visible to this instance. If another instance connects, then there should be a totally different file. It can be a copy, but not the same.
Anyone that can help me off. I’ve tried searching around, but without luck.
Is it possible?