Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix #484

Louis Beaumonta5b7230c488a
diff --git a/screenpipe-app-tauri/src-tauri/src/sidecar.rs b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
index 2d4465575..8bee9111f 100644
--- a/screenpipe-app-tauri/src-tauri/src/sidecar.rs
+++ b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
@@ -1,6 +1,7 @@
use crate::{get_base_dir, SidecarState};
use serde_json::Value;
use std::env;
+use std::os::windows::process::CommandExt;
use std::sync::Arc;
use std::time::{Duration, Instant};
use tauri::async_runtime::JoinHandle;
@@ -41,8 +42,10 @@ pub async fn kill_all_sreenpipes(
}
#[cfg(target_os = "windows")]
{
+ const CREATE_NO_WINDOW: u32 = 0x08000000;
tokio::process::Command::new("taskkill")
.args(&["/F", "/IM", "screenpipe.exe"])
+ .creation_flags(CREATE_NO_WINDOW)
.output()
.await
}