{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/1407","labels_url":"https://api.github.com/repos/composer/composer/issues/1407/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/1407/comments","events_url":"https://api.github.com/repos/composer/composer/issues/1407/events","html_url":"https://github.com/composer/composer/pull/1407","id":9176119,"number":1407,"title":"Conformation to XDG Base Directory Specification","user":{"login":"ntoniazzi","id":849271,"avatar_url":"https://avatars.githubusercontent.com/u/849271?v=3","gravatar_id":"","url":"https://api.github.com/users/ntoniazzi","html_url":"https://github.com/ntoniazzi","followers_url":"https://api.github.com/users/ntoniazzi/followers","following_url":"https://api.github.com/users/ntoniazzi/following{/other_user}","gists_url":"https://api.github.com/users/ntoniazzi/gists{/gist_id}","starred_url":"https://api.github.com/users/ntoniazzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntoniazzi/subscriptions","organizations_url":"https://api.github.com/users/ntoniazzi/orgs","repos_url":"https://api.github.com/users/ntoniazzi/repos","events_url":"https://api.github.com/users/ntoniazzi/events{/privacy}","received_events_url":"https://api.github.com/users/ntoniazzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/composer/composer/milestones/9","html_url":"https://github.com/composer/composer/milestones/Backwards%20Compatible","labels_url":"https://api.github.com/repos/composer/composer/milestones/9/labels","id":524151,"number":9,"title":"Backwards Compatible","description":"Issues that may impact BC in any way and that should be completed before getting out of alpha","creator":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":40,"state":"open","created_at":"2013-12-31T16:37:59Z","updated_at":"2015-04-30T16:11:32Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2012-12-11T11:12:45Z","updated_at":"2015-04-30T22:17:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/composer/composer/pulls/1407","html_url":"https://github.com/composer/composer/pull/1407","diff_url":"https://github.com/composer/composer/pull/1407.diff","patch_url":"https://github.com/composer/composer/pull/1407.patch"},"body":"A minor change to conform to the \"XDG Base Directory Specification\" (http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html - https://developer.gnome.org/basedir-spec/)."},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/97987321","html_url":"https://github.com/composer/composer/pull/1407#issuecomment-97987321","issue_url":"https://api.github.com/repos/composer/composer/issues/1407","id":97987321,"user":{"login":"jrobeson","id":56908,"avatar_url":"https://avatars.githubusercontent.com/u/56908?v=3","gravatar_id":"","url":"https://api.github.com/users/jrobeson","html_url":"https://github.com/jrobeson","followers_url":"https://api.github.com/users/jrobeson/followers","following_url":"https://api.github.com/users/jrobeson/following{/other_user}","gists_url":"https://api.github.com/users/jrobeson/gists{/gist_id}","starred_url":"https://api.github.com/users/jrobeson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrobeson/subscriptions","organizations_url":"https://api.github.com/users/jrobeson/orgs","repos_url":"https://api.github.com/users/jrobeson/repos","events_url":"https://api.github.com/users/jrobeson/events{/privacy}","received_events_url":"https://api.github.com/users/jrobeson/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T22:17:36Z","updated_at":"2015-04-30T22:17:36Z","body":"XDG_SESSION_ID is unrelated. It's for systemd  user sessions. \r\n\r\nThe environment variables XDG_DATA_HOME,XDG_DATA_DIRS, etc are used for overrides of the default configuration and thus not set by default and then XDG library basically checks for these environment variables and returns the appropriate fallbacks if they aren't set. It handles the differences to XDG_DATA_HOME, XDG_DATA_DIRS, etc automatically and prefers the appropriate one if set.\r\n\r\nOn Linux, we should assume .config , .cache , etc by default and create them if they don't exist. The OSX folks might have better defaults for their own directories, so I'm not sure what to do for them.\r\n\r\nMany programs that adopt XDG after the fact tend to keep existing configurations/directories and use them if they exist, but use .config,.cache,etc on new installs.\r\n"}}