-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
[Windows, 3.x] Improve console handling and execute. #55987
The head ref may contain hidden characters: "wt\u{1F90E}3"
Conversation
It turns out that it will no longer be possible to launch Godot from a shortcut on the desktop with output to the console? |
b98444b
to
16fbf40
Compare
Everything seems to be working, but there's one breaking change. Previously, it was possible to directly It's consistent with the non-blocking Tested it with MSVC, MinGW/GCC and MinGW/LLVM builds (original |
Always build with the GUI subsystem. Redirect stdout and stderr output to the parent process console. Use CreateProcessW for blocking `execute` calls with piped stdout and stderr (prevent console windows for popping up when used with the GUI subsystem build, and have more consistent behavior with non-blocking calls). Add `open_console` argument to the `execute` to open a new console window (for both blocking and non-blocking calls). Remove `interface/editor/hide_console_window` editor setting. Remove `Toggle System Console` menu option. Remove `set_console_visible` and `is_console_visible` functions.
71cb8d3
to
c58391c
Compare
Thanks! |
Alternative for the #55967 improved version of #41164, shouldn't be affected by #41328 (which was caused by
adb
running on background and usage of_wpopen()
).With these changes, console behavior on Windows should be the same as on Linux and macOS:
Changes:
execute
calls with piped stdout and stderr (prevent console windows for popping up when used with the GUI subsystem build, and have more consistent behavior with non-blocking calls).open_console
argument to theexecute
to open a new console window (for both blocking and non-blocking calls).interface/editor/hide_console_window
editor setting.Toggle System Console
menu option.set_console_visible
andis_console_visible
functions.