aboutsummaryrefslogtreecommitdiff
path: root/src/sound.rs
diff options
context:
space:
mode:
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",