Some variables are in systemd and some are in bin-path. These shoudl be in sync:
$ grep Environment /etc/systemd/system/docker_docker-daemon_1.6.0.002.service | sed 's/Environment=//' |tr ' ' '\n'|sed 's/"//g' | grep SNAP | sort
SNAPP_APP_DATA_PATH=/var/lib/apps/docker/1.6.0.002
SNAPP_APP_PATH=/apps/docker/1.6.0.002
SNAPP_APP_USER_DATA_PATH=%h/apps/docker/1.6.0.002
SNAP_APP=docker_docker-daemon_1.6.0.002
SNAP_APP_DATA_PATH=/var/lib/apps/docker/1.6.0.002
SNAP_APP_PATH=/apps/docker/1.6.0.002
SNAP_APP_TMPDIR=/tmp/snaps/docker/1.6.0.002/tmp
SNAP_APP_USER_DATA_PATH=%h/apps/docker/1.6.0.002
SNAP_FULLNAME=docker
SNAP_NAME=docker
SNAP_ORIGIN=
$ hello-world.env |grep SNAP|sort
SNAPPY_APP_ARCH=amd64
SNAPP_APP_DATA_PATH=/var/lib//apps/hello-world.canonical/1.0.14
SNAPP_APP_PATH=/apps/hello-world.canonical/1.0.14
SNAPP_APP_TMPDIR=/tmp/snaps/hello-world.canonical/1.0.14/tmp
SNAPP_APP_USER_DATA_PATH=/home/ubuntu//apps/hello-world.canonical/1.0.14
SNAPP_OLD_PWD=/etc/systemd/system
SNAP_APP_DATA_PATH=/var/lib//apps/hello-world.canonical/1.0.14
SNAP_APP_PATH=/apps/hello-world.canonical/1.0.14
SNAP_APP_TMPDIR=/tmp/snaps/hello-world.canonical/1.0.14/tmp
SNAP_APP_USER_DATA_PATH=/home/ubuntu//apps/hello-world.canonical/1.0.14
SNAP_FULLNAME=hello-world.canonical
SNAP_NAME=hello-world
SNAP_OLD_PWD=/etc/systemd/system
SNAP_ORIGIN=canonical
I noticed this because SNAPPY_APP_ARCH would be very useful for services but it isn't exported (this should probably be SNAP_APP_ARCH).
the hooks probably also need to have a unified environ.
mmm... triplication.
On 29 April 2015 at 09:33, Michael Vogt <email address hidden> wrote: /bugs.launchpad .net/bugs/ 1449625 /bugs.launchpad .net/snappy- ubuntu/ +bug/1449625/ +subscriptions
> ** Changed in: snappy-ubuntu
> Status: New => Triaged
>
> ** Changed in: snappy-ubuntu
> Importance: Undecided => High
>
> --
> You received this bug notification because you are a member of Snappy
> Developers, which is subscribed to snappy-ubuntu.
> https:/
>
> Title:
> systemd and bin-path exported variables are not in sync
>
> To manage notifications about this bug go to:
> https:/