Thank you Timo. I changed from "./bin" to "/bin", then it works.
Br Enwei On Sun, Nov 27, 2016 at 3:18 AM, Timo Jyrinki <[email protected]> wrote: > Hi Enwei, > > I think you might be running into bugs, given how in this and other > threads people are bumping into bugs with the content interface. > > I haven't tried write, but I did have ubuntu-app-platform using paths at > first and that did work fine, aside from the mounting bug discussed in this > thread. However there are very subtle details like you shouldn't use / at > the end - see https://bugs.launchpad.net/snappy/+bug/1635170 I filed. > > I can't test now since I'm on a long leave and only using my Ubuntu Phone. > > -Timo > > > keskiviikko 23. marraskuuta 2016 Enwei Zhang <[email protected]> > kirjoitti: > > Hello, > > Thanks Timo for the good example. > > While I tried to write two snaps(server to share paths to client) that > use content interface to share files, I found "write" slot doesn't work. > > The code snippet from server side snapcraft.yaml > > > > slots: > > test-share: > > content: test-content-server > > interface: content > > write: > > - . > > > > When accessing from client side snap, it shows "permission denied". > > > > Also, I found only "." path can work, other path like below "./bin" > cannot work. When you run "snap interfaces", below slot "test-share" will > not show up. > > > > slots: > > test-share: > > content: test-content-server > > interface: content > > read: > > - ./bin > > > > Are these bugs or my misunderstanding? I tested on both 2.16 and 2.17 > snapd. > > Thanks for your answer. > > > > Br > > Enwei > >> > >> -- > >> Snapcraft mailing list > >> [email protected] > >> Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/snapcraft > > > > > > -- > Snapcraft mailing list > [email protected] > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/snapcraft > >
-- Snapcraft mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
