fix: update freedesktop-desktop-entry

This commit is contained in:
Michael Aaron Murphy 2025-04-30 17:19:16 +02:00 committed by Michael Murphy
parent 58a8f2db64
commit 8d9da92dba
8 changed files with 833 additions and 610 deletions

View file

@ -124,7 +124,7 @@ fn detect_terminal() -> (PathBuf, &'static str) {
freedesktop_desktop_entry::Iter::new(freedesktop_desktop_entry::default_paths())
.filter_map(|path| {
std::fs::read_to_string(&path).ok().and_then(|input| {
DesktopEntry::from_str(&path, &input, &get_languages_from_env())
DesktopEntry::from_str(&path, &input, Some(&get_languages_from_env()))
.ok()
.and_then(|de| {
if de.no_display()