{"action":"created","issue":{"url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/1047","repository_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate","labels_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/1047/labels{/name}","comments_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/1047/comments","events_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/1047/events","html_url":"https://github.com/chentsulin/electron-react-boilerplate/issues/1047","id":234827407,"number":1047,"title":"App root directory","user":{"login":"brospars","id":5736114,"avatar_url":"https://avatars0.githubusercontent.com/u/5736114?v=3","gravatar_id":"","url":"https://api.github.com/users/brospars","html_url":"https://github.com/brospars","followers_url":"https://api.github.com/users/brospars/followers","following_url":"https://api.github.com/users/brospars/following{/other_user}","gists_url":"https://api.github.com/users/brospars/gists{/gist_id}","starred_url":"https://api.github.com/users/brospars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brospars/subscriptions","organizations_url":"https://api.github.com/users/brospars/orgs","repos_url":"https://api.github.com/users/brospars/repos","events_url":"https://api.github.com/users/brospars/events{/privacy}","received_events_url":"https://api.github.com/users/brospars/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-09T13:30:44Z","updated_at":"2017-06-09T18:40:30Z","closed_at":null,"body":"Hi,\r\nI'm using `electron-react-boilerplate` to create a desktop app (targeted os : ubuntu, windows) that uses an external 'backend' that does the hardwork  and is located at the root folder of my repository as so :\r\n```\r\n/\r\n| app/\r\n| backend/\r\n| ...\r\n| package.json\r\n```\r\n\r\nThis backend is spawned inside my mainProcess and I'm using `process.cwd()` to locate it relatively to the app root directory. It works fine on windows (dev, production and packaged) but on linux when packaged and installed using `dpkg`, `process.cwd()` doesn't return the app root directory but the home folder of the user instead.\r\n\r\nAny tip to make it work on all plateform and environment ?\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/comments/307468007","html_url":"https://github.com/chentsulin/electron-react-boilerplate/issues/1047#issuecomment-307468007","issue_url":"https://api.github.com/repos/chentsulin/electron-react-boilerplate/issues/1047","id":307468007,"user":{"login":"amilajack","id":6374832,"avatar_url":"https://avatars2.githubusercontent.com/u/6374832?v=3","gravatar_id":"","url":"https://api.github.com/users/amilajack","html_url":"https://github.com/amilajack","followers_url":"https://api.github.com/users/amilajack/followers","following_url":"https://api.github.com/users/amilajack/following{/other_user}","gists_url":"https://api.github.com/users/amilajack/gists{/gist_id}","starred_url":"https://api.github.com/users/amilajack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amilajack/subscriptions","organizations_url":"https://api.github.com/users/amilajack/orgs","repos_url":"https://api.github.com/users/amilajack/repos","events_url":"https://api.github.com/users/amilajack/events{/privacy}","received_events_url":"https://api.github.com/users/amilajack/received_events","type":"User","site_admin":false},"created_at":"2017-06-09T18:40:30Z","updated_at":"2017-06-09T18:40:30Z","body":"Also take a look at this comment: https://github.com/chentsulin/electron-react-boilerplate/issues/374#issuecomment-307441098"}}
{"actor":{"display_login":"amilajack"}}