{"action":"created","issue":{"url":"https://api.github.com/repos/ubuntu-core/snappy/issues/269","labels_url":"https://api.github.com/repos/ubuntu-core/snappy/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/ubuntu-core/snappy/issues/269/comments","events_url":"https://api.github.com/repos/ubuntu-core/snappy/issues/269/events","html_url":"https://github.com/ubuntu-core/snappy/pull/269","id":122966914,"number":269,"title":"Remap user-level environment to system-level for services.","user":{"login":"kyrofa","id":946674,"avatar_url":"https://avatars.githubusercontent.com/u/946674?v=3","gravatar_id":"","url":"https://api.github.com/users/kyrofa","html_url":"https://github.com/kyrofa","followers_url":"https://api.github.com/users/kyrofa/followers","following_url":"https://api.github.com/users/kyrofa/following{/other_user}","gists_url":"https://api.github.com/users/kyrofa/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrofa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrofa/subscriptions","organizations_url":"https://api.github.com/users/kyrofa/orgs","repos_url":"https://api.github.com/users/kyrofa/repos","events_url":"https://api.github.com/users/kyrofa/events{/privacy}","received_events_url":"https://api.github.com/users/kyrofa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-18T15:23:05Z","updated_at":"2015-12-22T14:14:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ubuntu-core/snappy/pulls/269","html_url":"https://github.com/ubuntu-core/snappy/pull/269","diff_url":"https://github.com/ubuntu-core/snappy/pull/269.diff","patch_url":"https://github.com/ubuntu-core/snappy/pull/269.patch"},"body":"Currently Snappy services define `$SNAP_APP_USER_DATA_PATH` to be within /root/apps, however, there is no logic to create the `$SNAP_APP_USER_DATA_PATH` like there is within binary wrappers, which means any service that tries to use `$SNAP_APP_USER_DATA_PATH` is trying to use a non-existing directory.\r\n\r\nHaving services write caches or logs into /root doesn't really make sense anyway, so this PR remaps the user-level environment into the system-level environment (i.e. `$SNAP_APP_USER_DATA_PATH` now =\r\n`$SNAP_APP_DATA_PATH`) for services.\r\n\r\nFixes LP: [#1527612](https://bugs.launchpad.net/snappy/+bug/1527612)"},"comment":{"url":"https://api.github.com/repos/ubuntu-core/snappy/issues/comments/166626580","html_url":"https://github.com/ubuntu-core/snappy/pull/269#issuecomment-166626580","issue_url":"https://api.github.com/repos/ubuntu-core/snappy/issues/269","id":166626580,"user":{"login":"chipaca","id":1543430,"avatar_url":"https://avatars.githubusercontent.com/u/1543430?v=3","gravatar_id":"","url":"https://api.github.com/users/chipaca","html_url":"https://github.com/chipaca","followers_url":"https://api.github.com/users/chipaca/followers","following_url":"https://api.github.com/users/chipaca/following{/other_user}","gists_url":"https://api.github.com/users/chipaca/gists{/gist_id}","starred_url":"https://api.github.com/users/chipaca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chipaca/subscriptions","organizations_url":"https://api.github.com/users/chipaca/orgs","repos_url":"https://api.github.com/users/chipaca/repos","events_url":"https://api.github.com/users/chipaca/events{/privacy}","received_events_url":"https://api.github.com/users/chipaca/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T14:14:27Z","updated_at":"2015-12-22T14:14:27Z","body":"ok to test"}}