{"action":"opened","issue":{"url":"https://api.github.com/repos/atom/electron/issues/3657","labels_url":"https://api.github.com/repos/atom/electron/issues/3657/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/3657/comments","events_url":"https://api.github.com/repos/atom/electron/issues/3657/events","html_url":"https://github.com/atom/electron/issues/3657","id":119881529,"number":3657,"title":"remote.process.argv has an extra arg in osx when opening file with app from Finder","user":{"login":"cldwalker","id":11994,"avatar_url":"https://avatars.githubusercontent.com/u/11994?v=3","gravatar_id":"","url":"https://api.github.com/users/cldwalker","html_url":"https://github.com/cldwalker","followers_url":"https://api.github.com/users/cldwalker/followers","following_url":"https://api.github.com/users/cldwalker/following{/other_user}","gists_url":"https://api.github.com/users/cldwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/cldwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cldwalker/subscriptions","organizations_url":"https://api.github.com/users/cldwalker/orgs","repos_url":"https://api.github.com/users/cldwalker/repos","events_url":"https://api.github.com/users/cldwalker/events{/privacy}","received_events_url":"https://api.github.com/users/cldwalker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-02T07:03:58Z","updated_at":"2015-12-02T07:03:58Z","closed_at":null,"body":"When opening my Electron app in osx by opening it with a file from Finder, `remote.process.argv` has an additional arg e.g. `[\"/Users/me/code/repo/LightTable/builds/lighttable-0.8.0-alpha-mac/LightTable.app/Contents/MacOS/Electron\" \"-psn_0_12340164\"]`. This additional arg appears to be [an apple event](http://stackoverflow.com/a/8542947). This additional arg makes process.argv unreliable/unusable for opening files from the commandline. Have you seen this before and is this expected behavior?\r\n\r\nI'm seeing this for OSX 10.10.4 for Electron 0.31.1 and 0.34.5"}}