-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Dart SDK Version: Dart 2.7.0
OS: Windows x64
I ran into this issue using flutter but was referred to here since it seems like the issue is related to something with the dart:io library.
Flutter upgraded its windows embedding project to run from wWinMain
instead of main
, which does not spawn a console. This is obviously desirable for a GUI application such as flutter. However, the issue is that whenever the Process class is used from the dart:io
library there is no console to inherit from, resulting in the cmd window popping up until the process is closed/completed.
I am wondering how I can spawn a process and hide the console so it doesn't appear. I understand it will have to create a console for itself, but surely there is some way to hide it? Here is a reference to the issue I created in the flutter repo. It has some example code demonstrating the problem as well as the discussion thus far, explaining why this appears to be a problem with Dart and not the flutter library.
Thanks!