<div dir="ltr">Sorry, <div><br></div><div>I just found that each snap has its own "tmp" directory created in the /tmp directory of the system. I just created a file, and it looks like:</div><div><br></div><div><div>root@liuxg:/tmp/snap.1000_snap.hello.fifo_TovLTW/tmp# ls</div><div>anothefile</div></div><div><br></div><div>Thanks & best regards,</div><div>XiaoGuo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 5, 2017 at 8:04 AM, XiaoGuo Liu <span dir="ltr"><<a href="mailto:xiaoguo.liu@canonical.com" target="_blank">xiaoguo.liu@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Oli,<div><br></div><div>Does it mean all of the snaps have the same /tmp or each snap has its own /tmp? I am a little bit confused about this.</div><div><br></div><div>Thanks & best regards,</div><div>XiaoGuo</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Feb 4, 2017 at 6:43 PM, Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">hi,<br>
<span>Am Freitag, den 03.02.2017, 21:04 +0100 schrieb Luca Dionisi:<br>
> What is the best place to write (and read) a temporary FIFO file from<br>
> a confined snap application?<br>
> This is for simple IPC between 2 processes of the same snap.<br>
> Before attempting to snap the application I was using a fixed<br>
> filename<br>
> in /tmp. Admittedly poor solution.<br>
> The solution should be usable also with another packaging system.<br>
><br>
</span>well ... in case of snaps /tmp is a private directory that only your<br>
snap can access so it is actually a good place for such stuff ...<br>
<br>
... that said ... if you want to use it in other packaging systems<br>
where this is not the case it might indeed not be the best choice and<br>
using XDG_RUNTIME_DIR might be the better way, as others pointed out.<br>
<br>
ciao<br>
oli<br></div></div><span class="">--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">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/mailm<wbr>an/listinfo/snapcraft</a><br>
<br></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_3198763190347036456gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">XiaoGuo, Liu </div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">XiaoGuo, Liu </div></div></div></div>
</div>