Connect applications to schemes, filetypes, and more on macOS (more to come)
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Respecting symlinks

+12 -1
+12 -1
infat-lib/src/macos/workspace.rs
··· 155 155 let mut found_count = 0; 156 156 for entry in entries.flatten() { 157 157 let entry_path = entry.path(); 158 - if entry_path.extension().is_some_and(|ext| ext == "app") { 158 + 159 + // Follow symlinks to get the actual target 160 + let resolved_path = if entry_path.is_symlink() { 161 + match std::fs::canonicalize(&entry_path) { 162 + Ok(canonical) => canonical, 163 + Err(_) => continue, // Skip broken symlinks 164 + } 165 + } else { 166 + entry_path.clone() 167 + }; 168 + 169 + if resolved_path.extension().is_some_and(|ext| ext == "app") { 159 170 apps.push(entry_path); 160 171 found_count += 1; 161 172 }