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: make app_name mutable for Windows exe fallback assignment

Louis Beaumont6f83f6f130c8
diff --git a/crates/screenpipe-vision/src/capture_screenshot_by_window.rs b/crates/screenpipe-vision/src/capture_screenshot_by_window.rs
index a56b5fae4..1fbeaa128 100644
--- a/crates/screenpipe-vision/src/capture_screenshot_by_window.rs
+++ b/crates/screenpipe-vision/src/capture_screenshot_by_window.rs
@@ -876,7 +876,7 @@ fn get_all_windows() -> Result<Vec<WindowData>, Box<dyn Error>> {
Ok(windows
.into_iter()
.filter_map(|window| {
- let app_name = match window.app_name() {
+ let mut app_name = match window.app_name() {
Ok(name) => name.to_string(),
Err(e) => {
debug!("Failed to get app_name for window: {}", e);