https://bugs.kde.org/show_bug.cgi?id=438455

--- Comment #23 from Stefan Brüns <stefan.bru...@rwth-aachen.de> ---
(In reply to tagwerk19 from comment #20)

>     $ kmimetypefinder baloo_test_libreoffice.ppt
>     application/vnd.ms-powerpoint

This only checcks for the filename:

$> echo "This is not a powerpoint document" > /tmp/foo.ppt
$> kmimetypefinder /tmp/foo.ppt 
application/vnd.ms-powerpoint

> which look OK to an untutored eye. However for some reason baloo picks a
> more generic mimetype...
> 
>     Nov 21 17:59:51 testmc baloo_file_extractor[3120]: kf.baloo: Indexing
> 5664426208328705 "/home/test/testfiles/baloo_test_WPS.ppt"
> "application/x-ole-storage"
>     Nov 21 17:59:51 testmc baloo_file_extractor[3120]: kf.filemetadata: No
> extractor for "application/x-ole-storage"
>     Nov 21 17:59:51 testmc baloo_file_extractor[3120]: kf.baloo: Indexing
> 5691149494844417 "/home/test/testfiles/baloo_test_libreoffice.ppt"
> "application/x-ole-storage"
>     Nov 21 17:59:51 testmc baloo_file_extractor[3120]: kf.filemetadata: No
> extractor for "application/x-ole-storage"
> 
> ... and balooshow shows the "application/x-ole-storage" mimetype, not the
> content

Bug in shared mime info, https://gitlab.freedesktop.org/xdg/shared-mime-info/

/usr/share/mime/packages/freedesktop.org.xml has :
  <mime-type type="application/msword">
    <sub-class-of type="application/x-ole-storage"/>

but application/vnd.ms-powerpoint has no sub-class-of. Dito for e.g. Access and
Excel documents.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to