1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

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
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

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())