{"action":"created","issue":{"url":"https://api.github.com/repos/ubuntu-core/snappy/issues/264","labels_url":"https://api.github.com/repos/ubuntu-core/snappy/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/ubuntu-core/snappy/issues/264/comments","events_url":"https://api.github.com/repos/ubuntu-core/snappy/issues/264/events","html_url":"https://github.com/ubuntu-core/snappy/pull/264","id":122777247,"number":264,"title":"Change wrapper to use /root instead of $HOME if run as root.","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":2,"created_at":"2015-12-17T16:59:54Z","updated_at":"2015-12-17T17:03:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ubuntu-core/snappy/pulls/264","html_url":"https://github.com/ubuntu-core/snappy/pull/264","diff_url":"https://github.com/ubuntu-core/snappy/pull/264.diff","patch_url":"https://github.com/ubuntu-core/snappy/pull/264.patch"},"body":"Currently Snappy services (which are run as root) use `/root/apps/` for `$SNAP_APP_USER_DATA_PATH`. However, Snappy binaries always use `$HOME/apps/`, which resolves to the real user's home even if run with sudo.\r\n\r\nThis PR fixes this inconsistency by having Snappy binaries behave more like Snappy services, and making sure that `/root/apps/` is handled the same way as `/home/*/apps/` when it comes to upgrades\r\netc.\r\n\r\nFixes LP: [#1466234](https://bugs.launchpad.net/snappy/+bug/1466234)"},"comment":{"url":"https://api.github.com/repos/ubuntu-core/snappy/issues/comments/165514333","html_url":"https://github.com/ubuntu-core/snappy/pull/264#issuecomment-165514333","issue_url":"https://api.github.com/repos/ubuntu-core/snappy/issues/264","id":165514333,"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},"created_at":"2015-12-17T17:03:37Z","updated_at":"2015-12-17T17:03:37Z","body":"Note that this PR implements portions of Jamie's Proposal *#*1 [here](https://bugs.launchpad.net/snappy/+bug/1466234/comments/6)."}}