<div dir="ltr">Hi,<div> Unfortunately, either inside or outside quotes it is still blank.</div><div><br></div><div>Do you have a link to that hello world example you mentioned.</div><div><br></div><div>The previous reply (from yesterday) mentioned the use of interfaces, maybe this would be cleaner than messing around with scripts and environment variables?</div><div>I am using snapcraft 1.1.0, are interfaces available to use in that version?</div><div><br></div><div>Jenny</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 August 2016 at 12:13, Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<span class="">On Do, 2016-08-25 at 12:03 +0100, Jenny Murphy wrote:<br>
> Hi,<br>
>  Do I need to define the location of SNAP_USER_DATA. Currently I<br>
> added the following line to a wrapper script that already runs in my<br>
> app :<br>
><br>
> echo "User Data = " $SNAP_USER_DATA<br>
><br>
><br>
> The result is<br>
>  User Data =<br>
<br>
</span>you probably want the variable inside the quotes ;) <br>
<br>
you can install the hello-world snap to check the default environment a<br>
snap gets ...<br>
<br>
ubuntu@pi3:~$ hello-world.env |grep SNAP_USER_DATA<br>
SNAP_USER_DATA=/home/ubuntu/<wbr>snap/hello-world/27<br>
<br>
there is also a hellp-world.sh in that package that spawns a shell<br>
inside a typical snap sandbox so you can inspect the environment more<br>
and try out what is writable etc.<br>
<br>
ciao<br>
        oli<br>
<br>
<br>--<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div><strong>Jenny Murphy</strong></div>
<div><strong>EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland</strong></div>
<div>jenny.murphy<a href="mailto:jenny.murphy@episensor.com" target="_blank">@episensor.com</a>  t | +353 (0) 61 512 511  w | <a href="http://www.episensor.com/" target="_blank">http://www.episensor.com</a></div></div>
</div>