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

tagwer...@innerjoin.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tagwer...@innerjoin.org

--- Comment #6 from tagwer...@innerjoin.org ---
Excluding given mime types works, adding an:

    exclude mimetypes=text/x-csrc

to the .config/baloofilerc and reindexing means that baloo stops finding *.c
files.

C.f. creating 

    .local/share/mime/packages/x-mime-extension-dsf.xml

and adding application/x-wine-extension-dsf to excluded mimetypes:

    exclude mimetypes=text/x-csrc,application/x-wine-extension-dsf

and reindexing. This does not work


Some ad-hoc troubleshooting...


Copying the 'x-csrc' specific xml from

    /usr/share/mime/packages/freedesktop.org.xml

into a local test file

    .local/share/mime/packages/test.xml

for comparison and editing the files so the two definitions converge, purging
and reindexing after each change.

When:

    <sub-class-of type="text/plain"/>

is copied to the wine extension definition, giving:

    <?xml version="1.0" encoding="UTF-8"?>
    <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info";>
      <mime-type type="application/x-wine-extension-dsf">
        <sub-class-of type="text/plain"/>
        <glob pattern="*.dsf"/>
        <comment>DSON Support File</comment>
      </mime-type>
    </mime-info>

results in the dsf files not being indexed.

Looks like it's not an issue with local versus system wide definitions;
QMimeDatabase does seem to be picking up user specific info. Also looks like
xdg-mime and the QMimeDatabase can give different results.

    Neon Testing
    Plasma: 5.20.90
    Frameworks: 5.79.0
    Qt: 5.15.2

Disclaimer - no idea if the "sub-class-of" affects anything else. Need to ask
someone who knows...

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

Reply via email to