Skip to content
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

How can one spawn a process without opening up a window? #41

Open
amitka-rnd opened this issue Dec 5, 2021 · 1 comment
Open

How can one spawn a process without opening up a window? #41

amitka-rnd opened this issue Dec 5, 2021 · 1 comment

Comments

@amitka-rnd
Copy link

I'm compiling my exe with #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
an issue I've noticed that whenever I trigger a new command it opens up a new window.

I've used Process before where I could've just pass a flag to creation_flags which indicates to not spawn a new window.

is there a solution for cmd_lib?

@rust-shell-script
Copy link
Owner

I don't have windows dev machine, but I guess to fix it you can just pass extra flags when calling Command::new in process.rs. Patch is also welcome.

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

No branches or pull requests

2 participants