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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(windows): fix sidecar state sharing and tray shortcut updates
louis03019552828a7b9a5e
diff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rsindex e99bb1369..0ee5ca9fe 100755--- a/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/screenpipe-app-tauri/src-tauri/src/main.rs@@ -810,7 +810,7 @@ async fn main() {update_global_shortcuts,get_env])- .setup(|app| {+ .setup(move |app| {//deep link register_all#[cfg(any(windows, target_os = "linux"))]{diff --git a/screenpipe-app-tauri/src-tauri/src/tray.rs b/screenpipe-app-tauri/src-tauri/src/tray.rsindex 45d6f3808..6796f5d30 100644--- a/screenpipe-app-tauri/src-tauri/src/tray.rs+++ b/screenpipe-app-tauri/src-tauri/src/tray.rs@@ -181,8 +181,14 @@ async fn update_menu_if_needed(}fn get_current_shortcuts(app: &AppHandle) -> Result<HashMap<String, String>> {- let _store = get_store(app, None)?;- let shortcuts = HashMap::new();+ let store = get_store(app, None)?;+ let mut shortcuts = HashMap::new();++ // Get the show shortcut from store+ if let Some(shortcut) = store.get("showScreenpipeShortcut").and_then(|v| v.as_str().map(String::from)) {+ shortcuts.insert("show".to_string(), shortcut);+ }+Ok(shortcuts)}