mirror of
https://github.com/chmln/handlr.git
synced 2024-11-23 17:51:46 +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(),
|
"Exec" => entry.exec = attr.value.unwrap().into(),
|
||||||
"MimeType" => {
|
"MimeType" => {
|
||||||
let mut mimes = attr
|
entry.mimes = attr
|
||||||
.value
|
.value
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.split(";")
|
.split(";")
|
||||||
.filter_map(|m| Mime::from_str(m).ok())
|
.filter_map(|m| Mime::from_str(m).ok())
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
mimes.pop();
|
|
||||||
entry.mimes = mimes;
|
|
||||||
}
|
}
|
||||||
"Terminal" => entry.terminal = attr.value.unwrap() == "true",
|
"Terminal" => entry.terminal = attr.value.unwrap() == "true",
|
||||||
"Categories" => {
|
"Categories" => {
|
||||||
|
|
Loading…
Reference in a new issue