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

fix: this should fix crashing (#859)

tribhuwanc637305a7b42
diff --git a/screenpipe-app-tauri/components/timeline/timeline-dock-section.tsx b/screenpipe-app-tauri/components/timeline/timeline-dock-section.tsx
index 20cf70fb8..13c966c58 100644
--- a/screenpipe-app-tauri/components/timeline/timeline-dock-section.tsx
+++ b/screenpipe-app-tauri/components/timeline/timeline-dock-section.tsx
@@ -174,9 +174,6 @@ export function TimelineIconsSection({
const loadAppIcon = useCallback(
async (appName: string, appPath?: string) => {
- // Skip icon fetching on Windows
- if (os === "windows") return;
-
try {
if (iconCache[appName]) return;
diff --git a/screenpipe-app-tauri/src-tauri/src/icons.rs b/screenpipe-app-tauri/src-tauri/src/icons.rs
index 00d64a68a..a66079344 100644
--- a/screenpipe-app-tauri/src-tauri/src/icons.rs
+++ b/screenpipe-app-tauri/src-tauri/src/icons.rs
@@ -142,10 +142,12 @@ fn get_exe_by_reg_key(
if let Ok(display_name) = app_key.get_value::<String, _>("DisplayName") {
if display_name.to_lowercase().contains(&app_name.to_lowercase()) {
if let Ok(path) = app_key.get_value::<String, _>("DisplayIcon") {
- let cleaned_path = path.split(',').next().unwrap_or(&path).to_string();
+ let cleaned_path = path.split(',').next()
+ .unwrap_or(&path).to_string().trim_matches('"').to_string();
return Some(cleaned_path);
} else if let Ok(path) = app_key.get_value::<String, _>("(default)") {
- let cleaned_path = path.split(',').next().unwrap_or(&path).to_string();
+ let cleaned_path = path.split(',').next()
+ .unwrap_or(&path).to_string().trim_matches('"').to_string();
return Some(cleaned_path);
}
}