<div dir="ltr"><div><div><div><div><div>Hello,<br></div>Thanks Timo for the good example.<br></div>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.<br></div>The code snippet from server side snapcraft.yaml<br><pre><span class="gmail-pyg-l-Scalar-Plain">slots</span><span class="gmail-pyg-p-Indicator">:</span>
<span class="gmail-pyg-l-Scalar-Plain">test-share</span><span class="gmail-pyg-p-Indicator">:</span>
<span class="gmail-pyg-l-Scalar-Plain">content</span><span class="gmail-pyg-p-Indicator">:</span> <span class="gmail-pyg-l-Scalar-Plain">test-content-server</span>
<span class="gmail-pyg-l-Scalar-Plain">interface</span><span class="gmail-pyg-p-Indicator">:</span> <span class="gmail-pyg-l-Scalar-Plain">content</span>
<span class="gmail-pyg-l-Scalar-Plain">write</span><span class="gmail-pyg-p-Indicator">:</span>
<span class="gmail-pyg-p-Indicator">-</span> <span class="gmail-pyg-l-Scalar-Plain">.</span></pre>When accessing from client side snap, it shows "permission denied".<br></div><br></div>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.<br><pre><span class="gmail-pyg-l-Scalar-Plain">slots</span><span class="gmail-pyg-p-Indicator">:</span>
<span class="gmail-pyg-l-Scalar-Plain">test-share</span><span class="gmail-pyg-p-Indicator">:</span>
<span class="gmail-pyg-l-Scalar-Plain">content</span><span class="gmail-pyg-p-Indicator">:</span> <span class="gmail-pyg-l-Scalar-Plain">test-content-server</span>
<span class="gmail-pyg-l-Scalar-Plain">interface</span><span class="gmail-pyg-p-Indicator">:</span> <span class="gmail-pyg-l-Scalar-Plain">content</span>
<span class="gmail-pyg-l-Scalar-Plain">read</span><span class="gmail-pyg-p-Indicator">:</span>
<span class="gmail-pyg-p-Indicator">-</span> <span class="gmail-pyg-l-Scalar-Plain">./bin<br><br></span></pre><div class="gmail_extra">Are these bugs or my misunderstanding? I tested on both 2.16 and 2.17 snapd.<br>Thanks for your answer.<br><br></div><div class="gmail_extra">Br<br></div><div class="gmail_extra">Enwei<br></div><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-"></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"></span><br><div class="gmail-HOEnZb"><div class="gmail-h5">
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
</div></div></blockquote></div><br></div></div>