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(tray): remove recreate_tray that hides dock icon and doesn't help notch
Louis Beaumontf2f7f7707bdf
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex fb6f299e7..4b90c0573 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -1514,18 +1514,14 @@ async fn main() {}}- // On notched MacBooks, the tray icon can land behind the notch.- // Recreate after a long delay so all other menu bar apps have registered- // their icons first — our new icon then gets the rightmost position- // (closest to system icons = most visible).+ // Log tray icon position for diagnostics.+ // On notched MacBooks with many menu bar icons, the tray can land behind+ // the notch. Users can Cmd+drag it to a visible position.#[cfg(target_os = "macos")]{let app_tray = app_handle.clone();tauri::async_runtime::spawn(async move {- tokio::time::sleep(tokio::time::Duration::from_secs(10)).await;- tray::log_tray_position(&app_tray);- tray::recreate_tray(&app_tray);- tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;+ tokio::time::sleep(tokio::time::Duration::from_secs(3)).await;tray::log_tray_position(&app_tray);});}