File permissions within a snap

Oliver Grawert ogra at ubuntu.com
Fri Aug 26 08:44:02 UTC 2016


hi,
Am Freitag, den 26.08.2016, 10:32 +0800 schrieb XiaoGuo Liu:
> Hi Jenny,
> 
> I do not think you need to define "SNAP_USER_DATA".It is already
> there. Please check my "hello" example code at https://github.com/liu
> -xiao-guo/helloworld-demo. After you install the app, you can run the
> command like:
> 
> liuxg at liuxg:~$ hello.env | grep SNAP
> SNAP_USER_COMMON=/home/liuxg/snap/hello/common
> SNAP_LIBRARY_PATH=/var/lib/snapd/lib/gl:
> SNAP_COMMON=/var/snap/hello/common
> SNAP_USER_DATA=/home/liuxg/snap/hello/x1
> SNAP_DATA=/var/snap/hello/x1
> SNAP_REVISION=x1
> SNAP_NAME=hello
> SNAP_ARCH=amd64
> SNAP_VERSION=1.0
> SNAP=/snap/hello/x1
> 
> Basically, SNAP_USER_DATA is defined as
> "/home/liuxg/snap/Your_Package_Name/version_number"
> 
jenny is talking about 15.04, there these variables did not even exist
;)

ciao
	oli
-------------- 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: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160826/1b3bd17d/attachment.sig>


More information about the Snapcraft mailing list