From a723dc8852f761b65b2f4cd25e958bf656278074 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Fri, 17 Jul 2026 16:03:47 +0300 Subject: fix(windows): prevent remaining subprocess console flashes refs #1468 --- src/sound.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/sound.rs') 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 { - Command::new("powershell.exe") + crate::noninteractive_process::command("powershell.exe") .args([ "-NoLogo", "-NoProfile", -- cgit v1.2.3