rust_cmd_lib icon indicating copy to clipboard operation
rust_cmd_lib copied to clipboard

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

Open amitka-rnd opened this issue 4 years ago • 1 comments

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?

amitka-rnd avatar Dec 05 '21 09:12 amitka-rnd

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.

rust-shell-script avatar Dec 11 '21 16:12 rust-shell-script