Skip to content

Terminal Window Briefly Opens and Closes During Tauri App Runtime in Production on Windows #11446

Discussion options

You must be logged in to vote

Sorry, thats my bad - I actually found the solution.

In my case it was the same problem as in #9719

I implemented a function (which I completely forgot) that created and executed a command - The solution is to set the creation flag like in the code below.

 let output = Command::new("wmic")
        .arg("bios")
        .arg("get")
        .arg("serialnumber")
        .stdout(Stdio::piped())
        .stderr(Stdio::piped())
        .creation_flags(0x08000000)
        .output()
        .expect("Failed to get serial number...");

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@FabianLars
Comment options

@QuirkyQueryQuester
Comment options

Answer selected by QuirkyQueryQuester
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants