<div dir="ltr">On Mon, Feb 23, 2015 at 10:17 AM, Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hi,<br>
Am Montag, den 23.02.2015, 08:34 +0200 schrieb Mark Shuttleworth:<br>
<span class="">> On 22/02/15 22:17, Víctor Mayoral Vilches wrote:<br>
> > *  # Writable area*<br>
> ><br>
> > *  owner /home/ubuntu/   w,*<br>
> > Which didn't work either. Could anyone point out how could i re-write the<br>
> > snap so that it can write in /home/ubuntu directory? I presume accessing<br>
> > hardware abstractions/files (e.g.: GPIOs) would be pretty much the same,<br>
> > right?<br>
><br>
> AIUI apps get a place where they can write that is not tied to a<br>
> specific user, something like:<br>
><br>
>   /var/lib/snappy/<app>/<br>
><br>
> That would be preferable to a default user like 'ubuntu'.<br>
<br>
</span>seems our developer guide [1] needs updating. it points to /var/apps ...<br>
currently.<br>
<br>
the correct path is /var/lib/apps/<pkgname>/ <version>/</blockquote><div><br></div><div>Thanks for the heads up Oli, updated the guide to point to /var/lib/apps/...<br><br></div><div>Cheers,<br></div><div>David.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  this path is<br>
exported into your environment as:<br>
<br>
$SNAPP_APP_DATA_PATH ...<br>
<br>
the guide points also to:<br>
<br>
/home/<user>/apps/<pkgname>/current/<br>
<br>
of which i have no clue about if it works, i haven't touched anything<br>
yet that needs user side configuration in snappy yet. but the<br>
environment points to this dir with:<br>
<br>
$SNAPP_APP_USER_DATA_PATH<br>
<br>
though beware ! if your app runs as root this will<br>
be /root/apps/<pkgname>/ by default.<br>
<br>
you can use both vars from your service startup script to do anything<br>
with data in them ... if you want to see all your environment just add<br>
the following line to one of your start scripts and restart the service:<br>
<br>
env >$SNAPP_APP_DATA_PATH/env.log<br>
<br>
ciao<br>
        oli<br>
<br>
[1] <a href="https://developer.ubuntu.com/en/snappy/#snap-developers" target="_blank">https://developer.ubuntu.com/en/snappy/#snap-developers</a><br>
<div class=""><div class="h5"><br>
<br>
--<br>
snappy-devel mailing list<br>
<a href="mailto:snappy-devel@lists.ubuntu.com">snappy-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snappy-devel" target="_blank">https://lists.ubuntu.com/mailman/listinfo/snappy-devel</a><br>
</div></div></blockquote></div><br></div></div>