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 🎅 CHRISMAS TIME 🎅

Louis Beaumont4e881d3efce5
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 301689e72..a6ede34ca 100644
--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -205,7 +205,6 @@ function createDefaultSettingsObject(): Settings {
return defaultSettings;
} catch (e) {
- console.error("failed to get platform", e);
return DEFAULT_SETTINGS;
}
}
@@ -311,16 +310,13 @@ export function useSettings() {
let p = "macos";
try {
p = platform();
- } catch (e) {
- console.error("failed to get platform", e);
- }
+ } catch (e) {}
return p === "macos" || p === "linux"
? `${homeDirPath}/.screenpipe`
: `${homeDirPath}\\.screenpipe`;
};
-
return {
settings,
updateSettings: setSettings,
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 7680873d6..72fc63ade 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.21.5"
+version = "0.21.6"
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 415ee3add..f5de23e3f 100755
--- a/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -60,7 +60,6 @@ pub use permissions::open_permission_settings;
pub use permissions::request_permission;
use tauri::AppHandle;
-use tauri_plugin_deep_link::DeepLinkExt;
use tauri_plugin_global_shortcut::GlobalShortcutExt;
use tauri_plugin_global_shortcut::{Code, Modifiers, Shortcut};
pub struct SidecarState(Arc<tokio::sync::Mutex<Option<SidecarManager>>>);
@@ -553,6 +552,9 @@ async fn main() {
.build()?;
let _ = main_tray.set_menu(Some(menu));
+ let update_item = update_manager.update_now_menu_item_ref().clone();
+ tray::setup_tray_menu_updater(app.handle().clone(), &update_item);
+
main_tray.on_menu_event(move |app_handle, event| match event.id().as_ref() {
"show" => {
show_main_window(app_handle, false);
@@ -818,24 +820,6 @@ async fn main() {
}
});
}
-
-<<<<<<< HEAD
-=======
- #[cfg(any(target_os = "linux", all(debug_assertions, windows)))]
- app.deep_link().register_all()?;
-
- app.deep_link().on_open_url(move |event| {
- let urls: Vec<_> = event.urls().into_iter().collect();
- info!("deep link URLs: {:?}", urls);
- });
- // Register URL scheme on Windows/Linux
- #[cfg(any(windows, target_os = "linux"))]
- {
- if let Err(err) = app.handle().deep_link().register("screenpipe") {
- error!("Failed to register deep link protocol: {}", err);
- }
- }
-
// Initialize global shortcuts
let app_handle = app.handle().clone();
tauri::async_runtime::spawn(async move {
@@ -843,8 +827,6 @@ async fn main() {
error!("Failed to initialize global shortcuts: {}", e);
}
});
-
->>>>>>> 7da94cbf3cd799baef60e49976f63cf5a5a91b47
Ok(())
})
.build(tauri::generate_context!())
diff --git a/screenpipe-app-tauri/src-tauri/src/sidecar.rs b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
index 8b5e75d39..f8ff0136b 100644
--- a/screenpipe-app-tauri/src-tauri/src/sidecar.rs
+++ b/screenpipe-app-tauri/src-tauri/src/sidecar.rs
@@ -1,7 +1,6 @@
use crate::{get_base_dir, SidecarState};
use serde::{Deserialize, Serialize};
use serde_json::Value;
-use std::env;
use std::sync::Arc;
use std::time::{Duration, Instant};
use tauri::async_runtime::JoinHandle;
@@ -367,15 +366,13 @@ fn spawn_sidecar(app: &tauri::AppHandle) -> Result<CommandChild, String> {
args.push("--debug");
- // Add exe directory path before the Windows-specific block
- let exe_dir = env::current_exe()
- .expect("Failed to get current executable path")
- .parent()
- .expect("Failed to get parent directory of executable")
- .to_path_buf();
- if cfg!(windows) {
+ if cfg!(windows) {
+ let mut c = app
+ .shell()
+ .sidecar("screenpipe")
+ .unwrap();
if use_chinese_mirror {
c = c.env("HF_ENDPOINT", "https://hf-mirror.com");
}
diff --git a/screenpipe-app-tauri/src-tauri/src/tray.rs b/screenpipe-app-tauri/src-tauri/src/tray.rs
index 19b24ae62..ef29efa31 100644
--- a/screenpipe-app-tauri/src-tauri/src/tray.rs
+++ b/screenpipe-app-tauri/src-tauri/src/tray.rs
@@ -4,7 +4,7 @@ use tauri::{
menu::{IsMenuItem, MenuBuilder, MenuItemBuilder, PredefinedMenuItem},
AppHandle, Wry,
};
-use tracing::{info, debug};
+use tracing::debug;
pub async fn update_tray_menu(
app: &AppHandle,