https://bugs.kde.org/show_bug.cgi?id=457522
--- Comment #17 from tagwer...@innerjoin.org --- (In reply to Natalie Clarius from comment #16) > ... Ah, right, that was a different bug (files of category "text" not found) > ... Think there might still be some bits to untangle... For a "test.m" file, an empty one to start with, and without indexing file content, in an up to date Neon Testing: Plasma: 5.25.5 Frameworks: 5.97.0 Qt: 5.15.5 I get: $ touch test.m $ kmimetypefinder test.m text/x-matlab $ balooshow -x test.m Terms: Mmatlab Mtext Mx T8 $ krunner test.m Listed. Categorised as "Text" Then a file that does not match any of the "magic" in the mimetypes list: $ echo "Hello Penguin" > test.m $ kmimefiletype test.m text/x-objcsrc $ balooshow -x test.m Terms: Mmatlab Mtext Mx T8 (*1) $ krunner test.m Listed. Categorised as "Text" Then one that matches the "magic": $ echo "##Hello Penguin" > test.m $ kmimefiletype test.m text/x-matlab $ balooshow -x test.m Terms: Mmatlab Mtext Mx T8 $krunner test.m Listed. Categorised as "Text" Not sure what baloo is doing in "*1" above but the rest seems OK. Purging and reindexing with file content: for an empty "test.m" file: $ rm test.m; touch test.m $ kmimetypefinder test.m text/x-matlab $ balooshow -x test.m Terms: Mapplication Mx Mzerosize (*2) $ krunner test.m Not Listed, except as one of the "Recent Files" Then a file that does not match any of the "magic" in the mimetypes list: $ echo "Hello Penguin" > test.m $ kmimefiletype test.m text/x-objcsrc $ balooshow -x test.m Terms: Mmatlab Mtext Mx T8 X20-1 hello penguin (*3) $ krunner test.m Not Listed, except as one of the "Recent Files" (*4) Then one that does match the "magic": $ echo "##Hello Penguin" > test.m $ kmimefiletype test.m text/x-matlab $ balooshow -x test.m Terms: Mmatlab Mtext Mx T8 X20-1 hello penguin $krunner test.m Not Listed, except as one of the "Recent Files" (*4) I think the application/x-zerosize (the *2) the baloo seems to add is a shame, I think this needs a fix but can see in this case that krunner wouldn't list the list the file (as it's not text) Not sure what's happening with "*3", it's the same behaviour as "*1" further up. There might be some double guessing going on. I think I'd be happier trusting the mime type data. Also not sure what's happening with "*4", that also doesn't seem right. According to Comment 2, the T8 implies the file is Text and my assumption is that Krunner should then list it. It probably doesn't matter about the ambiguity with the mime type (text/x-objcsrc or text/x-matlab) as they are both "text". It might matter in other cases. It's disturbing that krunner gives you better results if baloo is not indexing content 8-] I realise this is an edge case and this writeup is a bit long but I've deliberately dug down as it might pinpoint something underlying. I would be happy to repeat with other examples and see if there are patterns (I think that's part of triaging...) -- You are receiving this mail because: You are watching all bug changes.