Skip to content

Commit

Permalink
Merge pull request #398 from platformed-com/db-suppress-console
Browse files Browse the repository at this point in the history
Suppress the console popup on windows
  • Loading branch information
mdrokz committed Aug 9, 2023
2 parents 4f5f827 + f263e48 commit 775038e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/browser/process.rs
Expand Up @@ -397,6 +397,14 @@ impl Process {
command.envs(process_envs);
}

// Suppress creation of a console window on windows
#[cfg(windows)]
{
use std::os::windows::process::CommandExt;
const CREATE_NO_WINDOW: u32 = 0x08000000;
command.creation_flags(CREATE_NO_WINDOW);
}

let process = TemporaryProcess(
command.args(&args).stderr(Stdio::piped()).spawn()?,
temp_user_data_dir,
Expand Down

0 comments on commit 775038e

Please sign in to comment.