{"action":"created","issue":{"url":"https://api.github.com/repos/flatpak/flatpak/issues/2413","repository_url":"https://api.github.com/repos/flatpak/flatpak","labels_url":"https://api.github.com/repos/flatpak/flatpak/issues/2413/labels{/name}","comments_url":"https://api.github.com/repos/flatpak/flatpak/issues/2413/comments","events_url":"https://api.github.com/repos/flatpak/flatpak/issues/2413/events","html_url":"https://github.com/flatpak/flatpak/issues/2413","id":389401846,"node_id":"MDU6SXNzdWUzODk0MDE4NDY=","number":2413,"title":"--env doesn't override XDG_DATA_HOME","user":{"login":"bam80","id":233979,"node_id":"MDQ6VXNlcjIzMzk3OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/233979?v=4","gravatar_id":"","url":"https://api.github.com/users/bam80","html_url":"https://github.com/bam80","followers_url":"https://api.github.com/users/bam80/followers","following_url":"https://api.github.com/users/bam80/following{/other_user}","gists_url":"https://api.github.com/users/bam80/gists{/gist_id}","starred_url":"https://api.github.com/users/bam80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bam80/subscriptions","organizations_url":"https://api.github.com/users/bam80/orgs","repos_url":"https://api.github.com/users/bam80/repos","events_url":"https://api.github.com/users/bam80/events{/privacy}","received_events_url":"https://api.github.com/users/bam80/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-12-10T17:15:13Z","updated_at":"2018-12-12T02:48:26Z","closed_at":"2018-12-11T03:02:24Z","author_association":"NONE","body":"There is no way to change XDG_DATA_HOME environment variable value, other than manually, from within the container inself:\r\n```\r\n$ flatpak override --user --env=XDG_DATA_HOME=/home/bam/.local/share org.kde.discover\r\n$ flatpak run --command=sh org.kde.discover                                                       \r\n$ cat /.flatpak-info \r\n...\r\n[Environment]\r\nXDG_DATA_HOME=/home/bam/.local/share\r\n...\r\n$ echo $XDG_DATA_HOME\r\n/home/bam/.var/app/org.kde.discover/data\r\n```\r\nPlease, add it - I think the user should have such possibility if he really needs to change his variable inside the container.\r\n\r\n@alexlarsson @aleixpol"},"comment":{"url":"https://api.github.com/repos/flatpak/flatpak/issues/comments/446441986","html_url":"https://github.com/flatpak/flatpak/issues/2413#issuecomment-446441986","issue_url":"https://api.github.com/repos/flatpak/flatpak/issues/2413","id":446441986,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjQ0MTk4Ng==","user":{"login":"kirbyfan64","id":1690697,"node_id":"MDQ6VXNlcjE2OTA2OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1690697?v=4","gravatar_id":"","url":"https://api.github.com/users/kirbyfan64","html_url":"https://github.com/kirbyfan64","followers_url":"https://api.github.com/users/kirbyfan64/followers","following_url":"https://api.github.com/users/kirbyfan64/following{/other_user}","gists_url":"https://api.github.com/users/kirbyfan64/gists{/gist_id}","starred_url":"https://api.github.com/users/kirbyfan64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirbyfan64/subscriptions","organizations_url":"https://api.github.com/users/kirbyfan64/orgs","repos_url":"https://api.github.com/users/kirbyfan64/repos","events_url":"https://api.github.com/users/kirbyfan64/events{/privacy}","received_events_url":"https://api.github.com/users/kirbyfan64/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T02:48:26Z","updated_at":"2018-12-12T02:48:26Z","author_association":"NONE","body":"Could this whole thing basically be \"provide a way to access the original host environment\"? At least that's what I interpreted this as. \n\n@bam80 As a workaround you could just run `flatpak-spawn --host env` and grab the value from there, and add `--talk-name=org.freedesktop.Flatpak` to the permissions. "}}
{"actor":{"display_login":"kirbyfan64"}}