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
update tray icons
Ezra Ellette416c56d0332e
diff --git a/screenpipe-app-tauri/src-tauri/assets/update-logo-black.png b/screenpipe-app-tauri/src-tauri/assets/update-logo-black.pngnew file mode 100644index 000000000..b6f38f300Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/assets/update-logo-black.png differdiff --git a/screenpipe-app-tauri/src-tauri/assets/updates-black.png b/screenpipe-app-tauri/src-tauri/assets/updates-black.pngdeleted file mode 100644index a34989d1a..000000000Binary files a/screenpipe-app-tauri/src-tauri/assets/updates-black.png and /dev/null differdiff --git a/screenpipe-app-tauri/src-tauri/assets/updates-white.png b/screenpipe-app-tauri/src-tauri/assets/updates-white.pngdeleted file mode 100644index cdff796f2..000000000Binary files a/screenpipe-app-tauri/src-tauri/assets/updates-white.png and /dev/null differdiff --git a/screenpipe-app-tauri/src-tauri/icons/screenpipe-logo-tray-black.png b/screenpipe-app-tauri/src-tauri/icons/screenpipe-logo-tray-black.pngnew file mode 100644index 000000000..7f492169bBinary files /dev/null and b/screenpipe-app-tauri/src-tauri/icons/screenpipe-logo-tray-black.png differdiff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rsindex c8f848f98..f1cbb3833 100755--- a/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/screenpipe-app-tauri/src-tauri/src/main.rs@@ -216,7 +216,7 @@ async fn main() {});});- // update_manager.update_screenpipe();+ update_manager.update_screenpipe();}_ => (),});diff --git a/screenpipe-app-tauri/src-tauri/src/sidecar.rs b/screenpipe-app-tauri/src-tauri/src/sidecar.rsindex f0ce70a01..c3a251d05 100644--- a/screenpipe-app-tauri/src-tauri/src/sidecar.rs+++ b/screenpipe-app-tauri/src-tauri/src/sidecar.rs@@ -12,7 +12,6 @@ use tauri_plugin_store::{with_store, StoreCollection};use tokio::sync::Mutex;use tokio::time::sleep;use tracing::{debug, error, info};-use tracing_subscriber::field::debug;#[tauri::command]pub async fn kill_all_sreenpipes(diff --git a/screenpipe-app-tauri/src-tauri/src/updates.rs b/screenpipe-app-tauri/src-tauri/src/updates.rsindex ff6749904..7ae191c77 100644--- a/screenpipe-app-tauri/src-tauri/src/updates.rs+++ b/screenpipe-app-tauri/src-tauri/src/updates.rs@@ -7,6 +7,7 @@ use tauri::{Manager, Wry};use tauri_plugin_updater::UpdaterExt;use tokio::sync::Mutex;use tokio::time::interval;+pub struct UpdatesManager {interval: Duration,update_available: Arc<Mutex<bool>>,@@ -37,11 +38,13 @@ impl UpdatesManager {if let Some(tray) = self.app.tray_by_id("screenpipe_main") {let path = self.app.path().resolve(- "assets/updates-white.png",+ "assets/update-logo-black.png",tauri::path::BaseDirectory::Resource,)?;+if let Ok(image) = tauri::image::Image::from_path(path) {tray.set_icon(Some(image))?;+ tray.set_icon_as_template(true)?;}}@@ -85,7 +88,7 @@ pub fn start_update_check() -> Result<Arc<UpdatesManager>, Box<dyn std::error::Error>> {let updates_manager = Arc::new(UpdatesManager::new(app, interval_hours)?);- // Send initial event at boot+ // Check for updates at boottokio::spawn({let updates_manager = updates_manager.clone();async move {diff --git a/screenpipe-app-tauri/src-tauri/tauri.conf.json b/screenpipe-app-tauri/src-tauri/tauri.conf.jsonindex a2ec57f66..b9c32ff0c 100644--- a/screenpipe-app-tauri/src-tauri/tauri.conf.json+++ b/screenpipe-app-tauri/src-tauri/tauri.conf.json@@ -52,7 +52,8 @@"app": {"trayIcon": {"id": "screenpipe_main",- "iconPath": "icons/32x32.png"+ "iconPath": "icons/screenpipe-logo-tray-black.png",+ "iconAsTemplate": true},"windows": [{