-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
child_process: add the --windows-hide flag #21314
Conversation
Add a flag called --windows-hide that hides console windows for newly spawned processes by default on Windows.
Will this be documented? |
Is this in response to libuv/libuv#1878 (comment)? My idea there was that |
@cjihrig it is. I'd be submitting another |
@vsemozhetbyt because this is only meant for embedders, I chose against printing out the flag in the |
I'm not really a fan of adding a new config value for this. A semver major could be released in a few months in Node 11. The patch Electron is floating to work around this is pretty trivial. I don't think it would be much of a maintenance burden to carry for a couple months. EDIT: For reference, the patch is here, and has already been floated for 5 years. |
I'm in agreement with @cjihrig on this. |
@cjihrig @apapirovski I'm okay with closing this if the electron peeps don't want this either and agree with you 😄 |
@cjihrig you're right about this, and I talked to @codebytere who seemed to concur with you on this as well, so I'm closing this. Following up with a |
This is likely the default that more Windows users are expecting. PR-URL: nodejs#21316 Refs: libuv/libuv#1878 Refs: nodejs#21314 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Add a flag called --windows-hide that hides console windows for newly spawned
processes by default on Windows.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes/cc @nodejs/child_process @nodejs/delivery-channels @codebytere
This should work, but I might be wrong. Thinking of adding tests for this, suggestions welcome.