aboutsummaryrefslogtreecommitdiff
path: root/src/sound.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-17 16:03:47 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-17 16:03:47 +0300
commita723dc8852f761b65b2f4cd25e958bf656278074 (patch)
tree02267b4519d918d67a2e3019164394f92d488c26 /src/sound.rs
parent8d2af4e046c2a95dfc54aafd6f88da12389d76e8 (diff)
fix(windows): prevent remaining subprocess console flashes
refs #1468
Diffstat (limited to 'src/sound.rs')
-rw-r--r--src/sound.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sound.rs b/src/sound.rs
index ef45ccc7..7925069c 100644
--- a/src/sound.rs
+++ b/src/sound.rs
@@ -6,7 +6,9 @@
use std::io::Write;
use std::path::{Path, PathBuf};
-use std::process::{Command, Output};
+#[cfg(not(windows))]
+use std::process::Command;
+use std::process::Output;
use std::sync::atomic::{AtomicU64, Ordering};
use tracing::warn;
@@ -142,7 +144,7 @@ if (-not $script:done) { throw 'sound playback timed out' }
#[cfg(windows)]
fn run_windows_player(path: &Path) -> Result<Output, String> {
- Command::new("powershell.exe")
+ crate::noninteractive_process::command("powershell.exe")
.args([
"-NoLogo",
"-NoProfile",