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

--- Comment #22 from tagwer...@innerjoin.org ---
(In reply to Guido from comment #14)
> Created attachment 153919 [details]
> xls by libreoffice
This is the
    baloo_test_libreoffice.xls
file...

(In reply to Guido from comment #15)
> Created attachment 153920 [details]
> xls by WPS office
... and the
    baloo_test_wps.xls

The mimetypes are...

    $ kmimetypefinder baloo_test_libreoffice.xls
    application/vnd.ms-excel
    $ kmimetypefinder baloo_test_wps.xls
    application/vnd.ms-excel

but, as with the .ppt files above, baloo treats the files as
"application/x-ole-storage" and does find an extractor for them:

    Nov 21 17:59:51 testmc baloo_file_extractor[3120]: kf.baloo: Indexing
5691454437522433 "/home/test/testfiles/baloo_test_libreoffice.xls"
"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
5691463027457025 "/home/test/testfiles/baloo_test_wps.xls"
"application/x-ole-storage"
    Nov 21 17:59:51 testmc baloo_file_extractor[3120]: kf.filemetadata: No
extractor for "application/x-ole-storage"

With the "balooshow -x" results....

    $ balooshow -x baloo_test_libreoffice.xls
    1438590000fc01 64513 1325145 baloo_test_libreoffice.xls
[/home/test/testfiles/baloo_test_libreoffice.xls]
            Mtime: 1669049328 2022-11-21T17:48:48
            Ctime: 1669049328 2022-11-21T17:48:48

    Internal Info
    Terms: Mapplication Mole Mstorage Mx
    File Name Terms: Fbaloo Flibreoffice Ftest Fxls
    XAttr Terms:

    $ balooshow -x baloo_test_wps.xls
    14385b0000fc01 64513 1325147 baloo_test_wps.xls
[/home/test/testfiles/baloo_test_wps.xls]
            Mtime: 1669049991 2022-11-21T17:59:51
            Ctime: 1669049991 2022-11-21T17:59:51

    Internal Info
    Terms: Mapplication Mole Mstorage Mx
    File Name Terms: Fbaloo Ftest Fwps Fxls
    XAttr Terms:

It's possible to get kmimetypefinder to consider "just" the filename or "just"
the content:

    $ kmimetypefinder -f baloo_test_libreoffice.xls
    application/vnd.ms-excel
    $ kmimetypefinder -c baloo_test_libreoffice.xls
    application/x-ole-storage

which suggests some confusion with priorities and "magic" in the mimetype
database.

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

Reply via email to