mirror of
https://github.com/chmln/handlr.git
synced 2024-11-14 13:39:29 +01:00
Fix missing last mime
This commit is contained in:
parent
31297c7aa6
commit
865e00a6e5
1 changed files with 1 additions and 3 deletions
|
@ -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" => {
|
||||
|
|
Loading…
Reference in a new issue