File permissions within a snap

Oliver Grawert ogra at
Thu Aug 25 11:13:41 UTC 2016

On Do, 2016-08-25 at 12:03 +0100, Jenny Murphy wrote:
> Hi,
>  Do I need to define the location of SNAP_USER_DATA. Currently I
> added the following line to a wrapper script that already runs in my
> app :
> echo "User Data = " $SNAP_USER_DATA
> The result is
>  User Data =

you probably want the variable inside the quotes ;) 

you can install the hello-world snap to check the default environment a
snap gets ...

ubuntu at pi3:~$ hello-world.env |grep SNAP_USER_DATA

there is also a in that package that spawns a shell
inside a typical snap sandbox so you can inspect the environment more
and try out what is writable etc.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the Snapcraft mailing list