Skip to content

chore: hide Batch window on win32 #2004

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

Merged
merged 1 commit into from
Jul 10, 2023
Merged

chore: hide Batch window on win32 #2004

merged 1 commit into from
Jul 10, 2023

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