fix(image): matching desktop file names too eagerly

Fixes #228
This commit is contained in:
Jake Stanger
2023-07-26 21:52:05 +01:00
parent 36f3db7411
commit 7f6fef6338

View File

@@ -95,7 +95,7 @@ fn find_desktop_file_by_filename(app_id: &str, files: &[PathBuf]) -> Option<Path
// `com.company.app` or `com.app.something`
app_id
.split(&[' ', ':', '@', '.', '_'][..])
.any(|part| name.contains(part))
.any(|part| name.eq_ignore_ascii_case(part))
})
})
.map(|(file, _)| file.into())