Le Mon, Jul 01, 2019 at 09:05:36AM +0200, Alex Riesen a écrit : > > diff --git a/update-mime b/update-mime > index d27b8a9..be4187f 100755 > --- a/update-mime > +++ b/update-mime > @@ -157,7 +157,7 @@ sub ReadDesktopEntries > $exec .= " %s" if ($exec !~ m/%s/); > } > elsif (m/MimeType=(.*)/i) { > - push @types, split(/;/, $1); > + push @types, grep {length>0} > split(/\s*;\s*/, $1); > } > } > if (!defined($exec) || !scalar(@types)) {
Dear Alex, thank you for the report and for the patch. Do you think it would make sense to throw a warning on stderr when such a broken entry is found ? In that case, would you have time to propose an updated patch ? Have a nice day, Charles -- Charles Plessy Akano, Uruma, Okinawa, Japan