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

Louis Beaumont2dc2b22c27e7
diff --git a/screenpipe-server/src/add.rs b/screenpipe-server/src/add.rs
index 704c51516..e80783c93 100644
--- a/screenpipe-server/src/add.rs
+++ b/screenpipe-server/src/add.rs
@@ -188,9 +188,15 @@ pub async fn handle_index_command(
OcrEngine::WindowsNative => perform_ocr_windows(&frame).await.unwrap(),
_ => {
#[cfg(not(any(target_os = "macos", target_os = "windows")))]
- return perform_ocr_tesseract(&frame, Arc::new([].to_vec()));
-
- panic!("unsupported ocr engine");
+ {
+ let (text, _, confidence) =
+ perform_ocr_tesseract(&frame, Arc::new([].to_vec()));
+ (text, String::new(), confidence)
+ }
+ #[cfg(any(target_os = "macos", target_os = "windows"))]
+ {
+ panic!("unsupported ocr engine");
+ }
}
};