{"action":"created","comment":{"url":"https://api.github.com/repos/mattermost/desktop/pulls/comments/81962366","pull_request_review_id":2902792,"id":81962366,"diff_hunk":"@@ -375,6 +376,23 @@ app.on('ready', function() {\n   window_options.title = app.getName();\n   mainWindow = new BrowserWindow(window_options);\n \n+  if (process.platform === 'darwin') {\n+    session.defaultSession.on('will-download', (event, item, webContents) => {","path":"src/main.js","position":15,"original_position":15,"commit_id":"5baa424e1b769f8707aaed26003512cf11b15b00","original_commit_id":"5baa424e1b769f8707aaed26003512cf11b15b00","user":{"login":"yuya-oc","id":1412057,"avatar_url":"https://avatars.githubusercontent.com/u/1412057?v=3","gravatar_id":"","url":"https://api.github.com/users/yuya-oc","html_url":"https://github.com/yuya-oc","followers_url":"https://api.github.com/users/yuya-oc/followers","following_url":"https://api.github.com/users/yuya-oc/following{/other_user}","gists_url":"https://api.github.com/users/yuya-oc/gists{/gist_id}","starred_url":"https://api.github.com/users/yuya-oc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuya-oc/subscriptions","organizations_url":"https://api.github.com/users/yuya-oc/orgs","repos_url":"https://api.github.com/users/yuya-oc/repos","events_url":"https://api.github.com/users/yuya-oc/events{/privacy}","received_events_url":"https://api.github.com/users/yuya-oc/received_events","type":"User","site_admin":false},"body":"Just curious, is `ses.setDownloadPath()` appropreate for here?","created_at":"2016-10-05T12:38:49Z","updated_at":"2016-10-05T12:38:49Z","html_url":"https://github.com/mattermost/desktop/pull/330#discussion_r81962366","pull_request_url":"https://api.github.com/repos/mattermost/desktop/pulls/330","_links":{"self":{"href":"https://api.github.com/repos/mattermost/desktop/pulls/comments/81962366"},"html":{"href":"https://github.com/mattermost/desktop/pull/330#discussion_r81962366"},"pull_request":{"href":"https://api.github.com/repos/mattermost/desktop/pulls/330"}}},"pull_request":{"url":"https://api.github.com/repos/mattermost/desktop/pulls/330","id":87949699,"html_url":"https://github.com/mattermost/desktop/pull/330","diff_url":"https://github.com/mattermost/desktop/pull/330.diff","patch_url":"https://github.com/mattermost/desktop/pull/330.patch","issue_url":"https://api.github.com/repos/mattermost/desktop/issues/330","number":330,"state":"open","locked":false,"title":"Issue 302: Download desktop app download folder, instead of defaulting to Macintosh HD","user":{"login":"magicmonty","id":315639,"avatar_url":"https://avatars.githubusercontent.com/u/315639?v=3","gravatar_id":"","url":"https://api.github.com/users/magicmonty","html_url":"https://github.com/magicmonty","followers_url":"https://api.github.com/users/magicmonty/followers","following_url":"https://api.github.com/users/magicmonty/following{/other_user}","gists_url":"https://api.github.com/users/magicmonty/gists{/gist_id}","starred_url":"https://api.github.com/users/magicmonty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicmonty/subscriptions","organizations_url":"https://api.github.com/users/magicmonty/orgs","repos_url":"https://api.github.com/users/magicmonty/repos","events_url":"https://api.github.com/users/magicmonty/events{/privacy}","received_events_url":"https://api.github.com/users/magicmonty/received_events","type":"User","site_admin":false},"body":"First of all, please read `CONTRIBUTING.md`\r\n\r\n---\r\n\r\n- [x] Complete [Mattermost Contributor Agreement](http://www.mattermost.org/mattermost-contributor-agreement/)\r\n- [x] Execute `npm run prettify` to format codes\r\n- [x] Write about environment which you tested\r\n  - OSX 10.12.1\r\n\r\nOn Mac, a download in desktop app defaulted to Macintosh HD instead of the download folder","created_at":"2016-10-04T18:37:23Z","updated_at":"2016-10-05T12:38:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad45a1ac9f3a7bcc0a6c54de5a138b0139284b37","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mattermost/desktop/pulls/330/commits","review_comments_url":"https://api.github.com/repos/mattermost/desktop/pulls/330/comments","review_comment_url":"https://api.github.com/repos/mattermost/desktop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattermost/desktop/issues/330/comments","statuses_url":"https://api.github.com/repos/mattermost/desktop/statuses/5baa424e1b769f8707aaed26003512cf11b15b00","head":{"label":"magicmonty:issue_302","ref":"issue_302","sha":"5baa424e1b769f8707aaed26003512cf11b15b00","user":{"login":"magicmonty","id":315639,"avatar_url":"https://avatars.githubusercontent.com/u/315639?v=3","gravatar_id":"","url":"https://api.github.com/users/magicmonty","html_url":"https://github.com/magicmonty","followers_url":"https://api.github.com/users/magicmonty/followers","following_url":"https://api.github.com/users/magicmonty/following{/other_user}","gists_url":"https://api.github.com/users/magicmonty/gists{/gist_id}","starred_url":"https://api.github.com/users/magicmonty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicmonty/subscriptions","organizations_url":"https://api.github.com/users/magicmonty/orgs","repos_url":"https://api.github.com/users/magicmonty/repos","events_url":"https://api.github.com/users/magicmonty/events{/privacy}","received_events_url":"https://api.github.com/users/magicmonty/received_events","type":"User","site_admin":false},"repo":{"id":62032994,"name":"desktop","full_name":"magicmonty/desktop","owner":{"login":"magicmonty","id":315639,"avatar_url":"https://avatars.githubusercontent.com/u/315639?v=3","gravatar_id":"","url":"https://api.github.com/users/magicmonty","html_url":"https://github.com/magicmonty","followers_url":"https://api.github.com/users/magicmonty/followers","following_url":"https://api.github.com/users/magicmonty/following{/other_user}","gists_url":"https://api.github.com/users/magicmonty/gists{/gist_id}","starred_url":"https://api.github.com/users/magicmonty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicmonty/subscriptions","organizations_url":"https://api.github.com/users/magicmonty/orgs","repos_url":"https://api.github.com/users/magicmonty/repos","events_url":"https://api.github.com/users/magicmonty/events{/privacy}","received_events_url":"https://api.github.com/users/magicmonty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/magicmonty/desktop","description":"Mattermost Desktop application for Windows, Mac and Linux","fork":true,"url":"https://api.github.com/repos/magicmonty/desktop","forks_url":"https://api.github.com/repos/magicmonty/desktop/forks","keys_url":"https://api.github.com/repos/magicmonty/desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magicmonty/desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magicmonty/desktop/teams","hooks_url":"https://api.github.com/repos/magicmonty/desktop/hooks","issue_events_url":"https://api.github.com/repos/magicmonty/desktop/issues/events{/number}","events_url":"https://api.github.com/repos/magicmonty/desktop/events","assignees_url":"https://api.github.com/repos/magicmonty/desktop/assignees{/user}","branches_url":"https://api.github.com/repos/magicmonty/desktop/branches{/branch}","tags_url":"https://api.github.com/repos/magicmonty/desktop/tags","blobs_url":"https://api.github.com/repos/magicmonty/desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magicmonty/desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magicmonty/desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/magicmonty/desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magicmonty/desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/magicmonty/desktop/languages","stargazers_url":"https://api.github.com/repos/magicmonty/desktop/stargazers","contributors_url":"https://api.github.com/repos/magicmonty/desktop/contributors","subscribers_url":"https://api.github.com/repos/magicmonty/desktop/subscribers","subscription_url":"https://api.github.com/repos/magicmonty/desktop/subscription","commits_url":"https://api.github.com/repos/magicmonty/desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/magicmonty/desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/magicmonty/desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/magicmonty/desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/magicmonty/desktop/contents/{+path}","compare_url":"https://api.github.com/repos/magicmonty/desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magicmonty/desktop/merges","archive_url":"https://api.github.com/repos/magicmonty/desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magicmonty/desktop/downloads","issues_url":"https://api.github.com/repos/magicmonty/desktop/issues{/number}","pulls_url":"https://api.github.com/repos/magicmonty/desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/magicmonty/desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/magicmonty/desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magicmonty/desktop/labels{/name}","releases_url":"https://api.github.com/repos/magicmonty/desktop/releases{/id}","deployments_url":"https://api.github.com/repos/magicmonty/desktop/deployments","created_at":"2016-06-27T07:06:39Z","updated_at":"2016-06-27T07:06:41Z","pushed_at":"2016-10-04T18:36:51Z","git_url":"git://github.com/magicmonty/desktop.git","ssh_url":"git@github.com:magicmonty/desktop.git","clone_url":"https://github.com/magicmonty/desktop.git","svn_url":"https://github.com/magicmonty/desktop","homepage":"","size":1615,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"mattermost:master","ref":"master","sha":"dc870ba125cd0594f7c5db8963c464bd751cee4e","user":{"login":"mattermost","id":9828093,"avatar_url":"https://avatars.githubusercontent.com/u/9828093?v=3","gravatar_id":"","url":"https://api.github.com/users/mattermost","html_url":"https://github.com/mattermost","followers_url":"https://api.github.com/users/mattermost/followers","following_url":"https://api.github.com/users/mattermost/following{/other_user}","gists_url":"https://api.github.com/users/mattermost/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermost/subscriptions","organizations_url":"https://api.github.com/users/mattermost/orgs","repos_url":"https://api.github.com/users/mattermost/repos","events_url":"https://api.github.com/users/mattermost/events{/privacy}","received_events_url":"https://api.github.com/users/mattermost/received_events","type":"Organization","site_admin":false},"repo":{"id":43964563,"name":"desktop","full_name":"mattermost/desktop","owner":{"login":"mattermost","id":9828093,"avatar_url":"https://avatars.githubusercontent.com/u/9828093?v=3","gravatar_id":"","url":"https://api.github.com/users/mattermost","html_url":"https://github.com/mattermost","followers_url":"https://api.github.com/users/mattermost/followers","following_url":"https://api.github.com/users/mattermost/following{/other_user}","gists_url":"https://api.github.com/users/mattermost/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermost/subscriptions","organizations_url":"https://api.github.com/users/mattermost/orgs","repos_url":"https://api.github.com/users/mattermost/repos","events_url":"https://api.github.com/users/mattermost/events{/privacy}","received_events_url":"https://api.github.com/users/mattermost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mattermost/desktop","description":"Mattermost Desktop application for Windows, Mac and Linux","fork":false,"url":"https://api.github.com/repos/mattermost/desktop","forks_url":"https://api.github.com/repos/mattermost/desktop/forks","keys_url":"https://api.github.com/repos/mattermost/desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattermost/desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattermost/desktop/teams","hooks_url":"https://api.github.com/repos/mattermost/desktop/hooks","issue_events_url":"https://api.github.com/repos/mattermost/desktop/issues/events{/number}","events_url":"https://api.github.com/repos/mattermost/desktop/events","assignees_url":"https://api.github.com/repos/mattermost/desktop/assignees{/user}","branches_url":"https://api.github.com/repos/mattermost/desktop/branches{/branch}","tags_url":"https://api.github.com/repos/mattermost/desktop/tags","blobs_url":"https://api.github.com/repos/mattermost/desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattermost/desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattermost/desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattermost/desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattermost/desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/mattermost/desktop/languages","stargazers_url":"https://api.github.com/repos/mattermost/desktop/stargazers","contributors_url":"https://api.github.com/repos/mattermost/desktop/contributors","subscribers_url":"https://api.github.com/repos/mattermost/desktop/subscribers","subscription_url":"https://api.github.com/repos/mattermost/desktop/subscription","commits_url":"https://api.github.com/repos/mattermost/desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattermost/desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattermost/desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattermost/desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattermost/desktop/contents/{+path}","compare_url":"https://api.github.com/repos/mattermost/desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattermost/desktop/merges","archive_url":"https://api.github.com/repos/mattermost/desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattermost/desktop/downloads","issues_url":"https://api.github.com/repos/mattermost/desktop/issues{/number}","pulls_url":"https://api.github.com/repos/mattermost/desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/mattermost/desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/mattermost/desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattermost/desktop/labels{/name}","releases_url":"https://api.github.com/repos/mattermost/desktop/releases{/id}","deployments_url":"https://api.github.com/repos/mattermost/desktop/deployments","created_at":"2015-10-09T15:35:26Z","updated_at":"2016-10-03T16:15:19Z","pushed_at":"2016-10-05T12:27:59Z","git_url":"git://github.com/mattermost/desktop.git","ssh_url":"git@github.com:mattermost/desktop.git","clone_url":"https://github.com/mattermost/desktop.git","svn_url":"https://github.com/mattermost/desktop","homepage":"","size":1916,"stargazers_count":391,"watchers_count":391,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":101,"mirror_url":null,"open_issues_count":47,"forks":101,"open_issues":47,"watchers":391,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattermost/desktop/pulls/330"},"html":{"href":"https://github.com/mattermost/desktop/pull/330"},"issue":{"href":"https://api.github.com/repos/mattermost/desktop/issues/330"},"comments":{"href":"https://api.github.com/repos/mattermost/desktop/issues/330/comments"},"review_comments":{"href":"https://api.github.com/repos/mattermost/desktop/pulls/330/comments"},"review_comment":{"href":"https://api.github.com/repos/mattermost/desktop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattermost/desktop/pulls/330/commits"},"statuses":{"href":"https://api.github.com/repos/mattermost/desktop/statuses/5baa424e1b769f8707aaed26003512cf11b15b00"}}}}
{"actor":{"display_login":"yuya-oc"}}