Skip to content

Commit 26bf391

Browse files
authored
fix: correct app default search path on macOS (#381)
1 parent 20b6533 commit 26bf391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src-tauri/src/local/application.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl ApplicationSearchSource {
150150
let application_paths = Trie::new();
151151
let mut icons = HashMap::new();
152152

153-
let default_search_path = applications::get_default_search_paths();
153+
let default_search_path = get_default_search_paths().into_iter().map(PathBuf::from).collect();
154154
let mut ctx = AppInfoContext::new(default_search_path);
155155
ctx.refresh_apps().map_err(|err| err.to_string())?; // must refresh apps before getting them
156156
let apps = ctx.get_all_apps();
@@ -289,4 +289,4 @@ fn read_icon_and_encode(icon_path: &Path) -> Result<String, std::io::Error> {
289289

290290
// Encode the data to base64
291291
Ok(encode(&icon_data))
292-
}
292+
}

0 commit comments

Comments
 (0)