Skip to content

Hiding process console with no parent console to inherit from #39945

@idraper

Description

@idraper

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-iotype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions