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: rollback xcap to 0.2.2 on windows (#1411)

ologbonowiwi9c3a83688493
diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rs
index 1115fc670..bc05100b4 100644
--- a/screenpipe-server/src/bin/screenpipe-server.rs
+++ b/screenpipe-server/src/bin/screenpipe-server.rs
@@ -84,7 +84,9 @@ fn setup_logging(local_data_dir: &PathBuf, cli: &Cli) -> anyhow::Result<WorkerGu
.add_directive("hf_hub=error".parse().unwrap());
#[cfg(target_os = "windows")]
- let env_filter = env_filter.add_directive("xcap::platform::impl_window=off".parse().unwrap());
+ let env_filter = env_filter
+ .add_directive("xcap::platform::impl_window=off".parse().unwrap())
+ .add_directive("xcap::platform::impl_monitor=off".parse().unwrap());
let env_filter = env::var("SCREENPIPE_LOG")
.unwrap_or_default()
diff --git a/screenpipe-vision/Cargo.toml b/screenpipe-vision/Cargo.toml
index 1ee957ebd..b9c00d334 100644
--- a/screenpipe-vision/Cargo.toml
+++ b/screenpipe-vision/Cargo.toml
@@ -42,9 +42,6 @@ tracing = { workspace = true }
which = "6.0"
serde = "1.0.200"
-# TO-DO: use a released version. Done for now to avoid waiting xcap release.
-xcap = { package = "xcap", git = "https://github.com/nashaofu/xcap", rev = "214cb44" }
-
once_cell = { workspace = true }
base64 = "0.22.1"
@@ -90,6 +87,8 @@ harness = false
name = "screenpipe-vision-websocket"
path = "examples/websocket.rs"
+[target.'cfg(not(target_os = "windows"))'.dependencies]
+xcap = "0.3.2"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.58", features = [
@@ -98,6 +97,9 @@ windows = { version = "0.58", features = [
"Storage",
"Storage_Streams",
] }
+# version 0.3.2 on Windows is broken
+# see https://github.com/nashaofu/xcap/issues/194
+xcap = "0.2.2"
[target.'cfg(target_os = "macos")'.dependencies]
libc = "=0.2.164"