diff --git a/src/common/desktop_entry.rs b/src/common/desktop_entry.rs index b1b90cc..21c765d 100644 --- a/src/common/desktop_entry.rs +++ b/src/common/desktop_entry.rs @@ -107,14 +107,12 @@ fn parse_file(path: &Path) -> Option { } "Exec" => entry.exec = attr.value.unwrap().into(), "MimeType" => { - let mut mimes = attr + entry.mimes = attr .value .unwrap() .split(";") .filter_map(|m| Mime::from_str(m).ok()) .collect::>(); - mimes.pop(); - entry.mimes = mimes; } "Terminal" => entry.terminal = attr.value.unwrap() == "true", "Categories" => {