Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mxschmitt
Copy link
Member

This follows what we do in Playwright for .NET here:

microsoft/playwright-dotnet@741de1d

what they do internally here:

https://github.com/dotnet/runtime/blob/31106939ba524a7e6df8225cf8d0fedefba92b9f/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.Windows.cs#L498-L502

I made sure that it does not regress #1711
Fixes #1778

TL;DR: The Process creationflag CREATE_NO_WINDOW does not work, but setting the startupinfo manually works.

@mxschmitt mxschmitt changed the title chore: hide Batch Window on win32 chore: hide Batch window on win32 Jul 9, 2023
@mxschmitt mxschmitt merged commit 52e66de into main Jul 10, 2023
@mxschmitt mxschmitt deleted the set-STARTF_USESHOWWINDOW branch July 10, 2023 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] 1.30 & 1.31 cmd open up with headless (pyinstaller)
2 participants