Fix missing last mime

This commit is contained in:
Gregory 2021-04-24 22:30:57 -04:00
parent 31297c7aa6
commit 865e00a6e5
No known key found for this signature in database
GPG key ID: 2E44FAEEDC94B1E2

View file

@ -107,14 +107,12 @@ fn parse_file(path: &Path) -> Option<DesktopEntry> {
}
"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::<Vec<_>>();
mimes.pop();
entry.mimes = mimes;
}
"Terminal" => entry.terminal = attr.value.unwrap() == "true",
"Categories" => {