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 pipe store enable did not refresh - fix macos ffmpeg download

Louis Beaumont467893cf7eee
diff --git a/screenpipe-app-tauri/components/pipe-store.tsx b/screenpipe-app-tauri/components/pipe-store.tsx
index 6b7d89032..07f40c008 100644
--- a/screenpipe-app-tauri/components/pipe-store.tsx
+++ b/screenpipe-app-tauri/components/pipe-store.tsx
@@ -284,12 +284,23 @@ const PipeStore: React.FC = () => {
throw new Error(data.error);
}
+ // Immediately update the local state
+ setPipes(prevPipes =>
+ prevPipes.map(p =>
+ p.id === pipe.id ? { ...p, enabled: !p.enabled } : p
+ )
+ );
+
+ // If we're in the details view, update the selected pipe too
+ setSelectedPipe(prev =>
+ prev?.id === pipe.id ? { ...prev, enabled: !prev.enabled } : prev
+ );
+
toast({
- title: `${endpoint}ing pipe`,
- description: "this may take a few moments...",
+ title: `pipe ${endpoint}d`,
});
- await new Promise((resolve) => setTimeout(resolve, 1000));
+ // Still fetch the latest state from the server to ensure consistency
await fetchInstalledPipes();
} catch (error) {
console.error(`Failed to ${pipe.enabled ? "disable" : "enable"} pipe:`, error);
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index cd5355983..9d4ab556e 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -4713,7 +4713,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.14.33"
+version = "0.14.35"
dependencies = [
"anyhow",
"axum",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index e0da1af28..2e6fbb6ad 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.34"
+version = "0.14.35"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-core/src/ffmpeg.rs b/screenpipe-core/src/ffmpeg.rs
index 1073f0615..b947a931c 100644
--- a/screenpipe-core/src/ffmpeg.rs
+++ b/screenpipe-core/src/ffmpeg.rs
@@ -31,6 +31,21 @@ fn find_ffmpeg_path_internal() -> Option<PathBuf> {
}
debug!("ffmpeg not found in PATH");
+ // Check in $HOME/.local/bin on macOS
+ #[cfg(target_os = "macos")]
+ {
+ if let Ok(home) = std::env::var("HOME") {
+ let local_bin = PathBuf::from(home).join(".local").join("bin");
+ debug!("Checking $HOME/.local/bin: {:?}", local_bin);
+ let ffmpeg_in_local_bin = local_bin.join(EXECUTABLE_NAME);
+ if ffmpeg_in_local_bin.exists() {
+ debug!("Found ffmpeg in $HOME/.local/bin: {:?}", ffmpeg_in_local_bin);
+ return Some(ffmpeg_in_local_bin);
+ }
+ debug!("ffmpeg not found in $HOME/.local/bin");
+ }
+ }
+
// Check in current working directory
if let Ok(cwd) = std::env::current_dir() {
debug!("Current working directory: {:?}", cwd);