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

release-app fix: #807

Louis Beaumont28e751cd5c88
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 9c8e18453..f544a1a14 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.14.22"
+version = "0.14.23"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rs
index 4bd9fec7e..e101995f2 100755
--- a/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -85,6 +85,23 @@ fn get_data_dir(app: &tauri::AppHandle) -> anyhow::Result<PathBuf> {
async fn main() {
let _ = fix_path_env::fix();
+ // Set permanent OLLAMA_ORIGINS env var on Windows if not present
+ #[cfg(target_os = "windows")]
+ {
+ if env::var("OLLAMA_ORIGINS").is_err() {
+ let output = std::process::Command::new("setx")
+ .args(&["OLLAMA_ORIGINS", "*"])
+ .output()
+ .expect("failed to execute process");
+
+ if !output.status.success() {
+ error!("failed to set OLLAMA_ORIGINS: {}", String::from_utf8_lossy(&output.stderr));
+ } else {
+ info!("permanently set OLLAMA_ORIGINS=* for user");
+ }
+ }
+ }
+
let sidecar_state = SidecarState(Arc::new(tokio::sync::Mutex::new(None)));
#[allow(clippy::single_match)]
let app = tauri::Builder::default()