{"action":"created","comment":{"url":"https://api.github.com/repos/lra/mackup/pulls/comments/37139163","id":37139163,"diff_hunk":"@@ -45,13 +45,29 @@ def __init__(self):\n                 self.apps[app_name]['name'] = app_pretty_name\n \n                 # Add the configuration files to sync\n-                self.apps[app_name]['configuration_files'] = set()\n-                if config.has_section('configuration_files'):\n-                    for path in config.options('configuration_files'):\n+                config_section = 'configuration_files'\n+                if config.has_section(config_section):\n+                    self.apps[app_name][config_section] = set()\n+                    for path in config.options(config_section):\n                         if path.startswith('/'):\n                             raise ValueError('Unsupported absolute path: {}'\n                                              .format(path))\n-                        self.apps[app_name]['configuration_files'].add(path)\n+                        self.apps[app_name][config_section].add(path)\n+\n+                # Add the XDG configuration files to sync\n+                xdg_config_section = 'xdg_configuration_files'\n+                xdg_config_home = os.environ.get('XDG_CONFIG_HOME', False)\n+                if config.has_section(xdg_config_section):","path":"mackup/appsdb.py","position":20,"original_position":20,"commit_id":"691eda504a4642a6f34fd15358cd2f93362d1595","original_commit_id":"691eda504a4642a6f34fd15358cd2f93362d1595","user":{"login":"lra","id":122286,"avatar_url":"https://avatars.githubusercontent.com/u/122286?v=3","gravatar_id":"","url":"https://api.github.com/users/lra","html_url":"https://github.com/lra","followers_url":"https://api.github.com/users/lra/followers","following_url":"https://api.github.com/users/lra/following{/other_user}","gists_url":"https://api.github.com/users/lra/gists{/gist_id}","starred_url":"https://api.github.com/users/lra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lra/subscriptions","organizations_url":"https://api.github.com/users/lra/orgs","repos_url":"https://api.github.com/users/lra/repos","events_url":"https://api.github.com/users/lra/events{/privacy}","received_events_url":"https://api.github.com/users/lra/received_events","type":"User","site_admin":false},"body":"check that there is a `xdg_config_home` 1st.","created_at":"2015-08-15T20:42:23Z","updated_at":"2015-08-15T20:42:23Z","html_url":"https://github.com/lra/mackup/pull/624#discussion_r37139163","pull_request_url":"https://api.github.com/repos/lra/mackup/pulls/624","_links":{"self":{"href":"https://api.github.com/repos/lra/mackup/pulls/comments/37139163"},"html":{"href":"https://github.com/lra/mackup/pull/624#discussion_r37139163"},"pull_request":{"href":"https://api.github.com/repos/lra/mackup/pulls/624"}}},"pull_request":{"url":"https://api.github.com/repos/lra/mackup/pulls/624","id":42514218,"html_url":"https://github.com/lra/mackup/pull/624","diff_url":"https://github.com/lra/mackup/pull/624.diff","patch_url":"https://github.com/lra/mackup/pull/624.patch","issue_url":"https://api.github.com/repos/lra/mackup/issues/624","number":624,"state":"open","locked":false,"title":"XDG support for app configs","user":{"login":"mkwmms","id":2526129,"avatar_url":"https://avatars.githubusercontent.com/u/2526129?v=3","gravatar_id":"","url":"https://api.github.com/users/mkwmms","html_url":"https://github.com/mkwmms","followers_url":"https://api.github.com/users/mkwmms/followers","following_url":"https://api.github.com/users/mkwmms/following{/other_user}","gists_url":"https://api.github.com/users/mkwmms/gists{/gist_id}","starred_url":"https://api.github.com/users/mkwmms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkwmms/subscriptions","organizations_url":"https://api.github.com/users/mkwmms/orgs","repos_url":"https://api.github.com/users/mkwmms/repos","events_url":"https://api.github.com/users/mkwmms/events{/privacy}","received_events_url":"https://api.github.com/users/mkwmms/received_events","type":"User","site_admin":false},"body":"adds XDG support for app config files as discussed in #618","created_at":"2015-08-15T05:19:17Z","updated_at":"2015-08-15T20:42:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"704bb18c247e1410052bed379cf78a7640aeb9a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lra/mackup/pulls/624/commits","review_comments_url":"https://api.github.com/repos/lra/mackup/pulls/624/comments","review_comment_url":"https://api.github.com/repos/lra/mackup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lra/mackup/issues/624/comments","statuses_url":"https://api.github.com/repos/lra/mackup/statuses/691eda504a4642a6f34fd15358cd2f93362d1595","head":{"label":"mkwmms:master","ref":"master","sha":"691eda504a4642a6f34fd15358cd2f93362d1595","user":{"login":"mkwmms","id":2526129,"avatar_url":"https://avatars.githubusercontent.com/u/2526129?v=3","gravatar_id":"","url":"https://api.github.com/users/mkwmms","html_url":"https://github.com/mkwmms","followers_url":"https://api.github.com/users/mkwmms/followers","following_url":"https://api.github.com/users/mkwmms/following{/other_user}","gists_url":"https://api.github.com/users/mkwmms/gists{/gist_id}","starred_url":"https://api.github.com/users/mkwmms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkwmms/subscriptions","organizations_url":"https://api.github.com/users/mkwmms/orgs","repos_url":"https://api.github.com/users/mkwmms/repos","events_url":"https://api.github.com/users/mkwmms/events{/privacy}","received_events_url":"https://api.github.com/users/mkwmms/received_events","type":"User","site_admin":false},"repo":{"id":40746546,"name":"mackup","full_name":"mkwmms/mackup","owner":{"login":"mkwmms","id":2526129,"avatar_url":"https://avatars.githubusercontent.com/u/2526129?v=3","gravatar_id":"","url":"https://api.github.com/users/mkwmms","html_url":"https://github.com/mkwmms","followers_url":"https://api.github.com/users/mkwmms/followers","following_url":"https://api.github.com/users/mkwmms/following{/other_user}","gists_url":"https://api.github.com/users/mkwmms/gists{/gist_id}","starred_url":"https://api.github.com/users/mkwmms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkwmms/subscriptions","organizations_url":"https://api.github.com/users/mkwmms/orgs","repos_url":"https://api.github.com/users/mkwmms/repos","events_url":"https://api.github.com/users/mkwmms/events{/privacy}","received_events_url":"https://api.github.com/users/mkwmms/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mkwmms/mackup","description":"Keep your application settings in sync (OS X/Linux)","fork":true,"url":"https://api.github.com/repos/mkwmms/mackup","forks_url":"https://api.github.com/repos/mkwmms/mackup/forks","keys_url":"https://api.github.com/repos/mkwmms/mackup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mkwmms/mackup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mkwmms/mackup/teams","hooks_url":"https://api.github.com/repos/mkwmms/mackup/hooks","issue_events_url":"https://api.github.com/repos/mkwmms/mackup/issues/events{/number}","events_url":"https://api.github.com/repos/mkwmms/mackup/events","assignees_url":"https://api.github.com/repos/mkwmms/mackup/assignees{/user}","branches_url":"https://api.github.com/repos/mkwmms/mackup/branches{/branch}","tags_url":"https://api.github.com/repos/mkwmms/mackup/tags","blobs_url":"https://api.github.com/repos/mkwmms/mackup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mkwmms/mackup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mkwmms/mackup/git/refs{/sha}","trees_url":"https://api.github.com/repos/mkwmms/mackup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mkwmms/mackup/statuses/{sha}","languages_url":"https://api.github.com/repos/mkwmms/mackup/languages","stargazers_url":"https://api.github.com/repos/mkwmms/mackup/stargazers","contributors_url":"https://api.github.com/repos/mkwmms/mackup/contributors","subscribers_url":"https://api.github.com/repos/mkwmms/mackup/subscribers","subscription_url":"https://api.github.com/repos/mkwmms/mackup/subscription","commits_url":"https://api.github.com/repos/mkwmms/mackup/commits{/sha}","git_commits_url":"https://api.github.com/repos/mkwmms/mackup/git/commits{/sha}","comments_url":"https://api.github.com/repos/mkwmms/mackup/comments{/number}","issue_comment_url":"https://api.github.com/repos/mkwmms/mackup/issues/comments{/number}","contents_url":"https://api.github.com/repos/mkwmms/mackup/contents/{+path}","compare_url":"https://api.github.com/repos/mkwmms/mackup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mkwmms/mackup/merges","archive_url":"https://api.github.com/repos/mkwmms/mackup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mkwmms/mackup/downloads","issues_url":"https://api.github.com/repos/mkwmms/mackup/issues{/number}","pulls_url":"https://api.github.com/repos/mkwmms/mackup/pulls{/number}","milestones_url":"https://api.github.com/repos/mkwmms/mackup/milestones{/number}","notifications_url":"https://api.github.com/repos/mkwmms/mackup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mkwmms/mackup/labels{/name}","releases_url":"https://api.github.com/repos/mkwmms/mackup/releases{/id}","created_at":"2015-08-15T04:26:43Z","updated_at":"2015-08-15T04:26:43Z","pushed_at":"2015-08-15T05:15:59Z","git_url":"git://github.com/mkwmms/mackup.git","ssh_url":"git@github.com:mkwmms/mackup.git","clone_url":"https://github.com/mkwmms/mackup.git","svn_url":"https://github.com/mkwmms/mackup","homepage":"","size":5274,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lra:master","ref":"master","sha":"0feb666649fbdb25f9823bbacfd6d6c33670a350","user":{"login":"lra","id":122286,"avatar_url":"https://avatars.githubusercontent.com/u/122286?v=3","gravatar_id":"","url":"https://api.github.com/users/lra","html_url":"https://github.com/lra","followers_url":"https://api.github.com/users/lra/followers","following_url":"https://api.github.com/users/lra/following{/other_user}","gists_url":"https://api.github.com/users/lra/gists{/gist_id}","starred_url":"https://api.github.com/users/lra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lra/subscriptions","organizations_url":"https://api.github.com/users/lra/orgs","repos_url":"https://api.github.com/users/lra/repos","events_url":"https://api.github.com/users/lra/events{/privacy}","received_events_url":"https://api.github.com/users/lra/received_events","type":"User","site_admin":false},"repo":{"id":9265294,"name":"mackup","full_name":"lra/mackup","owner":{"login":"lra","id":122286,"avatar_url":"https://avatars.githubusercontent.com/u/122286?v=3","gravatar_id":"","url":"https://api.github.com/users/lra","html_url":"https://github.com/lra","followers_url":"https://api.github.com/users/lra/followers","following_url":"https://api.github.com/users/lra/following{/other_user}","gists_url":"https://api.github.com/users/lra/gists{/gist_id}","starred_url":"https://api.github.com/users/lra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lra/subscriptions","organizations_url":"https://api.github.com/users/lra/orgs","repos_url":"https://api.github.com/users/lra/repos","events_url":"https://api.github.com/users/lra/events{/privacy}","received_events_url":"https://api.github.com/users/lra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lra/mackup","description":"Keep your application settings in sync (OS X/Linux)","fork":false,"url":"https://api.github.com/repos/lra/mackup","forks_url":"https://api.github.com/repos/lra/mackup/forks","keys_url":"https://api.github.com/repos/lra/mackup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lra/mackup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lra/mackup/teams","hooks_url":"https://api.github.com/repos/lra/mackup/hooks","issue_events_url":"https://api.github.com/repos/lra/mackup/issues/events{/number}","events_url":"https://api.github.com/repos/lra/mackup/events","assignees_url":"https://api.github.com/repos/lra/mackup/assignees{/user}","branches_url":"https://api.github.com/repos/lra/mackup/branches{/branch}","tags_url":"https://api.github.com/repos/lra/mackup/tags","blobs_url":"https://api.github.com/repos/lra/mackup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lra/mackup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lra/mackup/git/refs{/sha}","trees_url":"https://api.github.com/repos/lra/mackup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lra/mackup/statuses/{sha}","languages_url":"https://api.github.com/repos/lra/mackup/languages","stargazers_url":"https://api.github.com/repos/lra/mackup/stargazers","contributors_url":"https://api.github.com/repos/lra/mackup/contributors","subscribers_url":"https://api.github.com/repos/lra/mackup/subscribers","subscription_url":"https://api.github.com/repos/lra/mackup/subscription","commits_url":"https://api.github.com/repos/lra/mackup/commits{/sha}","git_commits_url":"https://api.github.com/repos/lra/mackup/git/commits{/sha}","comments_url":"https://api.github.com/repos/lra/mackup/comments{/number}","issue_comment_url":"https://api.github.com/repos/lra/mackup/issues/comments{/number}","contents_url":"https://api.github.com/repos/lra/mackup/contents/{+path}","compare_url":"https://api.github.com/repos/lra/mackup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lra/mackup/merges","archive_url":"https://api.github.com/repos/lra/mackup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lra/mackup/downloads","issues_url":"https://api.github.com/repos/lra/mackup/issues{/number}","pulls_url":"https://api.github.com/repos/lra/mackup/pulls{/number}","milestones_url":"https://api.github.com/repos/lra/mackup/milestones{/number}","notifications_url":"https://api.github.com/repos/lra/mackup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lra/mackup/labels{/name}","releases_url":"https://api.github.com/repos/lra/mackup/releases{/id}","created_at":"2013-04-06T19:22:54Z","updated_at":"2015-08-15T19:20:44Z","pushed_at":"2015-08-15T05:19:17Z","git_url":"git://github.com/lra/mackup.git","ssh_url":"git@github.com:lra/mackup.git","clone_url":"https://github.com/lra/mackup.git","svn_url":"https://github.com/lra/mackup","homepage":"","size":5274,"stargazers_count":3033,"watchers_count":3033,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":313,"mirror_url":null,"open_issues_count":67,"forks":313,"open_issues":67,"watchers":3033,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lra/mackup/pulls/624"},"html":{"href":"https://github.com/lra/mackup/pull/624"},"issue":{"href":"https://api.github.com/repos/lra/mackup/issues/624"},"comments":{"href":"https://api.github.com/repos/lra/mackup/issues/624/comments"},"review_comments":{"href":"https://api.github.com/repos/lra/mackup/pulls/624/comments"},"review_comment":{"href":"https://api.github.com/repos/lra/mackup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lra/mackup/pulls/624/commits"},"statuses":{"href":"https://api.github.com/repos/lra/mackup/statuses/691eda504a4642a6f34fd15358cd2f93362d1595"}}}}