On Tue, 2017-02-07 at 12:04 +0800, XiaoGuo Liu wrote:
> Hi Jamie,
> 
> For my sample app at https://github.com/liu-xiao-guo/helloworld-fifo, I
> tried to use the /tmp file to create a file, and  finally I get a file on
> my Desktop like:
> 
> root@liuxg:/tmp/snap.1000_snap.hello.fifo_TovLTW/tmp# ls
> anothefile
> 
> It seems to me that the path is still related to the command name "fifo".
> Does this conflict with your saying?

It does not. That directory is what is bind mounted into mount namespace and
that is remembered for subsequent invocations of that command or other commands
from the same snap. Try it: create a snap with two commands, have one create a
file in /tmp and another to read the same file in /tmp-- it will work and the
temporary directory in the system's /tmp will be
/tmp/snap.0_snap.$SNAP_NAME.<first invoked command>_... will have the file you
created in it.

-- 
Jamie Strandboge             | http://www.canonical.com

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft

Reply via email to