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: deno not in path in app

Louis Beaumont61db13b85ccf
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 13be4a0cf..67c43aef1 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.4.3"
+version = "0.4.4"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-app-tauri/src-tauri/src/sidecar.rs b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
index 267ca408f..8ca907118 100644
--- a/screenpipe-app-tauri/src-tauri/src/sidecar.rs
+++ b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
@@ -254,8 +254,6 @@ fn spawn_sidecar(app: &tauri::AppHandle) -> Result<CommandChild, String> {
args.push("--disable-telemetry");
}
-
-
// args.push("--debug");
if cfg!(windows) {
@@ -275,6 +273,8 @@ fn spawn_sidecar(app: &tauri::AppHandle) -> Result<CommandChild, String> {
c = c.env("HF_ENDPOINT", "https://hf-mirror.com");
}
+ c = c.env("PATH", app.path().resource_dir().unwrap());
+
let c = c.args(&args);
let (_, child) = c.spawn().map_err(|e| {
@@ -293,6 +293,9 @@ fn spawn_sidecar(app: &tauri::AppHandle) -> Result<CommandChild, String> {
command = command.env("HF_ENDPOINT", "https://hf-mirror.com");
}
+ // pass the sidecars PATH to the screenpipe process
+ command = command.env("PATH", app.path().resource_dir().unwrap());
+
let command = command.args(&args);
let result = command.spawn();