{"action":"created","comment":{"url":"https://api.github.com/repos/ubergrape/grape-electron/pulls/comments/87560853","pull_request_review_id":8169145,"id":87560853,"diff_hunk":"@@ -0,0 +1,27 @@\n+import path from 'path'\n+import {app} from 'electron'\n+import {existsSync} from 'fs'\n+import loadJson from 'load-json-file'\n+import {isWindows, isOSX} from './utils'\n+\n+// Directory where of .app or .exe file lives.\n+let dir\n+\n+if (isOSX()) dir = path.normalize(app.getAppPath() + '/../../../..')","path":"app/src/app/rc.js","position":10,"original_position":10,"commit_id":"b5c598afe12bfb70564b4851397f5f57b5710aa2","original_commit_id":"b5c598afe12bfb70564b4851397f5f57b5710aa2","user":{"login":"giuseppeg","id":711311,"avatar_url":"https://avatars.githubusercontent.com/u/711311?v=3","gravatar_id":"","url":"https://api.github.com/users/giuseppeg","html_url":"https://github.com/giuseppeg","followers_url":"https://api.github.com/users/giuseppeg/followers","following_url":"https://api.github.com/users/giuseppeg/following{/other_user}","gists_url":"https://api.github.com/users/giuseppeg/gists{/gist_id}","starred_url":"https://api.github.com/users/giuseppeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuseppeg/subscriptions","organizations_url":"https://api.github.com/users/giuseppeg/orgs","repos_url":"https://api.github.com/users/giuseppeg/repos","events_url":"https://api.github.com/users/giuseppeg/events{/privacy}","received_events_url":"https://api.github.com/users/giuseppeg/received_events","type":"User","site_admin":false},"body":"from https://github.com/electron/electron/blob/master/docs/api/app.md#appgetpathname it seems that you could do `app.getAppPath('exe')`\r\n\r\n","created_at":"2016-11-11T09:39:40Z","updated_at":"2016-11-11T09:39:40Z","html_url":"https://github.com/ubergrape/grape-electron/pull/12#discussion_r87560853","pull_request_url":"https://api.github.com/repos/ubergrape/grape-electron/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/ubergrape/grape-electron/pulls/comments/87560853"},"html":{"href":"https://github.com/ubergrape/grape-electron/pull/12#discussion_r87560853"},"pull_request":{"href":"https://api.github.com/repos/ubergrape/grape-electron/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/ubergrape/grape-electron/pulls/12","id":93025794,"html_url":"https://github.com/ubergrape/grape-electron/pull/12","diff_url":"https://github.com/ubergrape/grape-electron/pull/12.diff","patch_url":"https://github.com/ubergrape/grape-electron/pull/12.patch","issue_url":"https://api.github.com/repos/ubergrape/grape-electron/issues/12","number":12,"state":"open","locked":false,"title":"allow configure domain using .graperc file","user":{"login":"kof","id":52824,"avatar_url":"https://avatars.githubusercontent.com/u/52824?v=3","gravatar_id":"","url":"https://api.github.com/users/kof","html_url":"https://github.com/kof","followers_url":"https://api.github.com/users/kof/followers","following_url":"https://api.github.com/users/kof/following{/other_user}","gists_url":"https://api.github.com/users/kof/gists{/gist_id}","starred_url":"https://api.github.com/users/kof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kof/subscriptions","organizations_url":"https://api.github.com/users/kof/orgs","repos_url":"https://api.github.com/users/kof/repos","events_url":"https://api.github.com/users/kof/events{/privacy}","received_events_url":"https://api.github.com/users/kof/received_events","type":"User","site_admin":false},"body":"ubergrape/chatgrape#4518","created_at":"2016-11-09T19:41:40Z","updated_at":"2016-11-11T09:39:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfd14b26b85f6c4537f7de45b60f3cb492153787","assignee":{"login":"giuseppeg","id":711311,"avatar_url":"https://avatars.githubusercontent.com/u/711311?v=3","gravatar_id":"","url":"https://api.github.com/users/giuseppeg","html_url":"https://github.com/giuseppeg","followers_url":"https://api.github.com/users/giuseppeg/followers","following_url":"https://api.github.com/users/giuseppeg/following{/other_user}","gists_url":"https://api.github.com/users/giuseppeg/gists{/gist_id}","starred_url":"https://api.github.com/users/giuseppeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuseppeg/subscriptions","organizations_url":"https://api.github.com/users/giuseppeg/orgs","repos_url":"https://api.github.com/users/giuseppeg/repos","events_url":"https://api.github.com/users/giuseppeg/events{/privacy}","received_events_url":"https://api.github.com/users/giuseppeg/received_events","type":"User","site_admin":false},"assignees":[{"login":"giuseppeg","id":711311,"avatar_url":"https://avatars.githubusercontent.com/u/711311?v=3","gravatar_id":"","url":"https://api.github.com/users/giuseppeg","html_url":"https://github.com/giuseppeg","followers_url":"https://api.github.com/users/giuseppeg/followers","following_url":"https://api.github.com/users/giuseppeg/following{/other_user}","gists_url":"https://api.github.com/users/giuseppeg/gists{/gist_id}","starred_url":"https://api.github.com/users/giuseppeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuseppeg/subscriptions","organizations_url":"https://api.github.com/users/giuseppeg/orgs","repos_url":"https://api.github.com/users/giuseppeg/repos","events_url":"https://api.github.com/users/giuseppeg/events{/privacy}","received_events_url":"https://api.github.com/users/giuseppeg/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ubergrape/grape-electron/pulls/12/commits","review_comments_url":"https://api.github.com/repos/ubergrape/grape-electron/pulls/12/comments","review_comment_url":"https://api.github.com/repos/ubergrape/grape-electron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ubergrape/grape-electron/issues/12/comments","statuses_url":"https://api.github.com/repos/ubergrape/grape-electron/statuses/b5c598afe12bfb70564b4851397f5f57b5710aa2","head":{"label":"ubergrape:feature/4518/domain-config","ref":"feature/4518/domain-config","sha":"b5c598afe12bfb70564b4851397f5f57b5710aa2","user":{"login":"ubergrape","id":595486,"avatar_url":"https://avatars.githubusercontent.com/u/595486?v=3","gravatar_id":"","url":"https://api.github.com/users/ubergrape","html_url":"https://github.com/ubergrape","followers_url":"https://api.github.com/users/ubergrape/followers","following_url":"https://api.github.com/users/ubergrape/following{/other_user}","gists_url":"https://api.github.com/users/ubergrape/gists{/gist_id}","starred_url":"https://api.github.com/users/ubergrape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubergrape/subscriptions","organizations_url":"https://api.github.com/users/ubergrape/orgs","repos_url":"https://api.github.com/users/ubergrape/repos","events_url":"https://api.github.com/users/ubergrape/events{/privacy}","received_events_url":"https://api.github.com/users/ubergrape/received_events","type":"Organization","site_admin":false},"repo":{"id":49578318,"name":"grape-electron","full_name":"ubergrape/grape-electron","owner":{"login":"ubergrape","id":595486,"avatar_url":"https://avatars.githubusercontent.com/u/595486?v=3","gravatar_id":"","url":"https://api.github.com/users/ubergrape","html_url":"https://github.com/ubergrape","followers_url":"https://api.github.com/users/ubergrape/followers","following_url":"https://api.github.com/users/ubergrape/following{/other_user}","gists_url":"https://api.github.com/users/ubergrape/gists{/gist_id}","starred_url":"https://api.github.com/users/ubergrape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubergrape/subscriptions","organizations_url":"https://api.github.com/users/ubergrape/orgs","repos_url":"https://api.github.com/users/ubergrape/repos","events_url":"https://api.github.com/users/ubergrape/events{/privacy}","received_events_url":"https://api.github.com/users/ubergrape/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ubergrape/grape-electron","description":"An experimental (but functional) Grape desktop client for Windows / OS X / Linux","fork":false,"url":"https://api.github.com/repos/ubergrape/grape-electron","forks_url":"https://api.github.com/repos/ubergrape/grape-electron/forks","keys_url":"https://api.github.com/repos/ubergrape/grape-electron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubergrape/grape-electron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubergrape/grape-electron/teams","hooks_url":"https://api.github.com/repos/ubergrape/grape-electron/hooks","issue_events_url":"https://api.github.com/repos/ubergrape/grape-electron/issues/events{/number}","events_url":"https://api.github.com/repos/ubergrape/grape-electron/events","assignees_url":"https://api.github.com/repos/ubergrape/grape-electron/assignees{/user}","branches_url":"https://api.github.com/repos/ubergrape/grape-electron/branches{/branch}","tags_url":"https://api.github.com/repos/ubergrape/grape-electron/tags","blobs_url":"https://api.github.com/repos/ubergrape/grape-electron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubergrape/grape-electron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubergrape/grape-electron/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubergrape/grape-electron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubergrape/grape-electron/statuses/{sha}","languages_url":"https://api.github.com/repos/ubergrape/grape-electron/languages","stargazers_url":"https://api.github.com/repos/ubergrape/grape-electron/stargazers","contributors_url":"https://api.github.com/repos/ubergrape/grape-electron/contributors","subscribers_url":"https://api.github.com/repos/ubergrape/grape-electron/subscribers","subscription_url":"https://api.github.com/repos/ubergrape/grape-electron/subscription","commits_url":"https://api.github.com/repos/ubergrape/grape-electron/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubergrape/grape-electron/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubergrape/grape-electron/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubergrape/grape-electron/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubergrape/grape-electron/contents/{+path}","compare_url":"https://api.github.com/repos/ubergrape/grape-electron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubergrape/grape-electron/merges","archive_url":"https://api.github.com/repos/ubergrape/grape-electron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubergrape/grape-electron/downloads","issues_url":"https://api.github.com/repos/ubergrape/grape-electron/issues{/number}","pulls_url":"https://api.github.com/repos/ubergrape/grape-electron/pulls{/number}","milestones_url":"https://api.github.com/repos/ubergrape/grape-electron/milestones{/number}","notifications_url":"https://api.github.com/repos/ubergrape/grape-electron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubergrape/grape-electron/labels{/name}","releases_url":"https://api.github.com/repos/ubergrape/grape-electron/releases{/id}","deployments_url":"https://api.github.com/repos/ubergrape/grape-electron/deployments","created_at":"2016-01-13T14:19:17Z","updated_at":"2016-10-31T16:46:43Z","pushed_at":"2016-11-09T19:41:40Z","git_url":"git://github.com/ubergrape/grape-electron.git","ssh_url":"git@github.com:ubergrape/grape-electron.git","clone_url":"https://github.com/ubergrape/grape-electron.git","svn_url":"https://github.com/ubergrape/grape-electron","homepage":"","size":2875,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ubergrape:master","ref":"master","sha":"fae26ae564e7b2e06c45bcf54011320f713811cc","user":{"login":"ubergrape","id":595486,"avatar_url":"https://avatars.githubusercontent.com/u/595486?v=3","gravatar_id":"","url":"https://api.github.com/users/ubergrape","html_url":"https://github.com/ubergrape","followers_url":"https://api.github.com/users/ubergrape/followers","following_url":"https://api.github.com/users/ubergrape/following{/other_user}","gists_url":"https://api.github.com/users/ubergrape/gists{/gist_id}","starred_url":"https://api.github.com/users/ubergrape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubergrape/subscriptions","organizations_url":"https://api.github.com/users/ubergrape/orgs","repos_url":"https://api.github.com/users/ubergrape/repos","events_url":"https://api.github.com/users/ubergrape/events{/privacy}","received_events_url":"https://api.github.com/users/ubergrape/received_events","type":"Organization","site_admin":false},"repo":{"id":49578318,"name":"grape-electron","full_name":"ubergrape/grape-electron","owner":{"login":"ubergrape","id":595486,"avatar_url":"https://avatars.githubusercontent.com/u/595486?v=3","gravatar_id":"","url":"https://api.github.com/users/ubergrape","html_url":"https://github.com/ubergrape","followers_url":"https://api.github.com/users/ubergrape/followers","following_url":"https://api.github.com/users/ubergrape/following{/other_user}","gists_url":"https://api.github.com/users/ubergrape/gists{/gist_id}","starred_url":"https://api.github.com/users/ubergrape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubergrape/subscriptions","organizations_url":"https://api.github.com/users/ubergrape/orgs","repos_url":"https://api.github.com/users/ubergrape/repos","events_url":"https://api.github.com/users/ubergrape/events{/privacy}","received_events_url":"https://api.github.com/users/ubergrape/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ubergrape/grape-electron","description":"An experimental (but functional) Grape desktop client for Windows / OS X / Linux","fork":false,"url":"https://api.github.com/repos/ubergrape/grape-electron","forks_url":"https://api.github.com/repos/ubergrape/grape-electron/forks","keys_url":"https://api.github.com/repos/ubergrape/grape-electron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubergrape/grape-electron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubergrape/grape-electron/teams","hooks_url":"https://api.github.com/repos/ubergrape/grape-electron/hooks","issue_events_url":"https://api.github.com/repos/ubergrape/grape-electron/issues/events{/number}","events_url":"https://api.github.com/repos/ubergrape/grape-electron/events","assignees_url":"https://api.github.com/repos/ubergrape/grape-electron/assignees{/user}","branches_url":"https://api.github.com/repos/ubergrape/grape-electron/branches{/branch}","tags_url":"https://api.github.com/repos/ubergrape/grape-electron/tags","blobs_url":"https://api.github.com/repos/ubergrape/grape-electron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubergrape/grape-electron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubergrape/grape-electron/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubergrape/grape-electron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubergrape/grape-electron/statuses/{sha}","languages_url":"https://api.github.com/repos/ubergrape/grape-electron/languages","stargazers_url":"https://api.github.com/repos/ubergrape/grape-electron/stargazers","contributors_url":"https://api.github.com/repos/ubergrape/grape-electron/contributors","subscribers_url":"https://api.github.com/repos/ubergrape/grape-electron/subscribers","subscription_url":"https://api.github.com/repos/ubergrape/grape-electron/subscription","commits_url":"https://api.github.com/repos/ubergrape/grape-electron/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubergrape/grape-electron/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubergrape/grape-electron/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubergrape/grape-electron/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubergrape/grape-electron/contents/{+path}","compare_url":"https://api.github.com/repos/ubergrape/grape-electron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubergrape/grape-electron/merges","archive_url":"https://api.github.com/repos/ubergrape/grape-electron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubergrape/grape-electron/downloads","issues_url":"https://api.github.com/repos/ubergrape/grape-electron/issues{/number}","pulls_url":"https://api.github.com/repos/ubergrape/grape-electron/pulls{/number}","milestones_url":"https://api.github.com/repos/ubergrape/grape-electron/milestones{/number}","notifications_url":"https://api.github.com/repos/ubergrape/grape-electron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubergrape/grape-electron/labels{/name}","releases_url":"https://api.github.com/repos/ubergrape/grape-electron/releases{/id}","deployments_url":"https://api.github.com/repos/ubergrape/grape-electron/deployments","created_at":"2016-01-13T14:19:17Z","updated_at":"2016-10-31T16:46:43Z","pushed_at":"2016-11-09T19:41:40Z","git_url":"git://github.com/ubergrape/grape-electron.git","ssh_url":"git@github.com:ubergrape/grape-electron.git","clone_url":"https://github.com/ubergrape/grape-electron.git","svn_url":"https://github.com/ubergrape/grape-electron","homepage":"","size":2875,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ubergrape/grape-electron/pulls/12"},"html":{"href":"https://github.com/ubergrape/grape-electron/pull/12"},"issue":{"href":"https://api.github.com/repos/ubergrape/grape-electron/issues/12"},"comments":{"href":"https://api.github.com/repos/ubergrape/grape-electron/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/ubergrape/grape-electron/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/ubergrape/grape-electron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ubergrape/grape-electron/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/ubergrape/grape-electron/statuses/b5c598afe12bfb70564b4851397f5f57b5710aa2"}}}}
{"actor":{"display_login":"giuseppeg"}}