{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/1556","labels_url":"https://api.github.com/repos/atom/electron/issues/1556/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/1556/comments","events_url":"https://api.github.com/repos/atom/electron/issues/1556/events","html_url":"https://github.com/atom/electron/issues/1556","id":72709263,"number":1556,"title":"[windows] Option for not attaching","user":{"login":"terrajobst","id":5169960,"avatar_url":"https://avatars.githubusercontent.com/u/5169960?v=3","gravatar_id":"","url":"https://api.github.com/users/terrajobst","html_url":"https://github.com/terrajobst","followers_url":"https://api.github.com/users/terrajobst/followers","following_url":"https://api.github.com/users/terrajobst/following{/other_user}","gists_url":"https://api.github.com/users/terrajobst/gists{/gist_id}","starred_url":"https://api.github.com/users/terrajobst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrajobst/subscriptions","organizations_url":"https://api.github.com/users/terrajobst/orgs","repos_url":"https://api.github.com/users/terrajobst/repos","events_url":"https://api.github.com/users/terrajobst/events{/privacy}","received_events_url":"https://api.github.com/users/terrajobst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/electron/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/atom/electron/labels/windows","name":"windows","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-02T22:32:12Z","updated_at":"2015-05-21T21:59:49Z","closed_at":null,"body":"It seems electron is [always attaching](https://github.com/atom/electron/blob/922def8ce06b1dcec9c513f6512d0d224c9a68c9/atom/app/atom_main.cc#L90) to the current console session. That causes some weirdness on Windows.\r\n\r\nFor example, I'm using the command line a lot and I'm quite used to opening editors such as Sublime in the current directory. When doing this with electron-based apps, this results in the following (and from my point of view) non-desired behavior:\r\n\r\n1. The electron instance is tied to the process of the shell. In other words, exiting the shell will not terminate before the instance of electron is closed.\r\n\r\n2. A whole bunch of logging is printed to the current console window. I understand that logging can be useful, but most users really just want to launch their electron-based tools and not debug them. Thus, it feels weird to force the output spew on everyone (yes, I can suppress the logging via `--v=-1` but that seems reversed and doesn't solve the attach issue).\r\n\r\nI suggest to either add a command line argument to suppress attaching or (my preference) making attaching opt-in. For now, I've solved the issue by setting the `OS` environment variable to `cygwin` prior to launching the tool, but I'm not sure this doesn't have undesired side-effects.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/104433828","html_url":"https://github.com/atom/electron/issues/1556#issuecomment-104433828","issue_url":"https://api.github.com/repos/atom/electron/issues/1556","id":104433828,"user":{"login":"terrajobst","id":5169960,"avatar_url":"https://avatars.githubusercontent.com/u/5169960?v=3","gravatar_id":"","url":"https://api.github.com/users/terrajobst","html_url":"https://github.com/terrajobst","followers_url":"https://api.github.com/users/terrajobst/followers","following_url":"https://api.github.com/users/terrajobst/following{/other_user}","gists_url":"https://api.github.com/users/terrajobst/gists{/gist_id}","starred_url":"https://api.github.com/users/terrajobst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrajobst/subscriptions","organizations_url":"https://api.github.com/users/terrajobst/orgs","repos_url":"https://api.github.com/users/terrajobst/repos","events_url":"https://api.github.com/users/terrajobst/events{/privacy}","received_events_url":"https://api.github.com/users/terrajobst/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T21:59:49Z","updated_at":"2015-05-21T21:59:49Z","body":"> I think a better solution would be for editors that expect to be invoked by the command-line to use a cmd-based wrapper like Atom does\r\n\r\nTo be clear, Atom.exe does attach to the existing console as well, which is undesired."}}