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 linux build (#1612)

Divanshu Grover5ddbb4f0d645
diff --git a/screenpipe-vision/src/capture_screenshot_by_window.rs b/screenpipe-vision/src/capture_screenshot_by_window.rs
index a3913437f..0cc5c8741 100644
--- a/screenpipe-vision/src/capture_screenshot_by_window.rs
+++ b/screenpipe-vision/src/capture_screenshot_by_window.rs
@@ -236,10 +236,6 @@ pub async fn capture_all_visible_windows(
"Failed to get process ID for window {} ({}): {}",
app_name, title, e
);
- // on linux return 0 as process id (happens in server/ci/cd)
- #[cfg(target_os = "linux")]
- return 0;
- #[cfg(not(target_os = "linux"))]
return None;
}
};