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 macos shit

Louis Beaumont17f9a925977f
diff --git a/screenpipe-app-tauri/src-tauri/src/icons.rs b/screenpipe-app-tauri/src-tauri/src/icons.rs
index edbe0be4d..79763dc01 100644
--- a/screenpipe-app-tauri/src-tauri/src/icons.rs
+++ b/screenpipe-app-tauri/src-tauri/src/icons.rs
@@ -1,7 +1,4 @@
-use base64::{engine::general_purpose::STANDARD, Engine};
-use cocoa::base::id;
-use cocoa::foundation::{NSData, NSString};
-use objc::{class, msg_send, sel, sel_impl};
+
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
@@ -17,7 +14,10 @@ pub async fn get_app_icon(
app_path: Option<String>,
) -> Result<Option<AppIcon>, String> {
// info!("getting icon for {}", app_name);
-
+ use base64::{engine::general_purpose::STANDARD, Engine};
+ use cocoa::base::id;
+ use cocoa::foundation::{NSData, NSString};
+ use objc::{class, msg_send, sel, sel_impl};
unsafe {
let workspace: id = msg_send![class!(NSWorkspace), sharedWorkspace];