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 build

Louis Beaumontc54ae55349f6
diff --git a/screenpipe-app-tauri/src-tauri/src/sidecar.rs b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
index 8bee9111f..0a1887079 100644
--- a/screenpipe-app-tauri/src-tauri/src/sidecar.rs
+++ b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
@@ -1,7 +1,6 @@
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;
@@ -42,6 +41,8 @@ pub async fn kill_all_sreenpipes(
}
#[cfg(target_os = "windows")]
{
+use std::os::windows::process::CommandExt;
+
const CREATE_NO_WINDOW: u32 = 0x08000000;
tokio::process::Command::new("taskkill")
.args(&["/F", "/IM", "screenpipe.exe"])