<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 18/09/2016 23:15, Oliver Grawert
wrote:<br>
</div>
<blockquote cite="mid:1474233356.15944.70.camel@ubuntu.com"
type="cite">
<pre wrap="">hi,
On So, 2016-09-18 at 23:03 +0200, Otfried Cheong wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I'm trying to create my first snap, and have a first question:
When a snap is installed (say hello-world), the system creates two
data
directories, /var/snap/hello-world/<revision> and
/var/snap/hello-world/common.
Apparently these are meant for the snap when it needs writable
storage,
but both directories are owned by root, and I haven't found any way
to
write to them, either from inside the snap or outside, whether
installing in --devmode or not.
</pre>
</blockquote>
<pre wrap="">they are for services (which always run as root by default) ...
user writable dirs are in ~/snap/<packagename>/<version>/
in the running snap environment this is represented by the
SNAP_USER_DATA environment variable.
ciao
oli
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<p>You also have $SNAP_USER_COMMON:
~/snap/<packagename>/common/ , that persists between
upgrades of the snap.</p>
<p>David<br>
</p>
</body>
</html>