After running that commands I got the following output:
$ ... Running kmimetypefinder5 "/home/alex/Desktop/index.html" application/x-perl
It seems like that kmimetypefinder5 is major culprit here. I've found another unrelated bugreport here which was reported about a year ago: https://bugs.launchpad.net/ubuntu/+source/kde-cli-tools/+bug/1857824
In that case the program reports wrong type for *.py files with correct content. Weird! I think it's wortht to rename this bugreport.
After running that commands I got the following output:
$ ... alex/Desktop/ index.html"
Running kmimetypefinder5 "/home/
application/x-perl
It seems like that kmimetypefinder5 is major culprit here. I've found another unrelated bugreport here which was reported about a year ago: https:/ /bugs.launchpad .net/ubuntu/ +source/ kde-cli- tools/+ bug/1857824
In that case the program reports wrong type for *.py files with correct content. Weird!
I think it's wortht to rename this bugreport.