testing with xdgmime [1] (reference implementation of the spec [2] and also used tests on shared-mine-type):
> ../xdgmime/src/print-mime-data . test.py: name: text/x-python data: application/xhtml+xml file: application/xhtml+xml > ../xdgmime/src/test-mime test.py File "test.py" has a mime-type of application/xhtml+xml [1] https://gitlab.freedesktop.org/xdg/xdgmime [2] https://freedesktop.org/wiki/Specifications/shared-mime-info-spec/ -- kmimetypefinder5 is just a tiny wrapper over QMimeDatabase [3][4]. So bug is likely on shared-mime-info or Qt implementation. [3] https://github.com/KDE/kde-cli-tools/blob/master/kmimetypefinder/kmimetypefinder.cpp [4] https://bugs.freedesktop.org/show_bug.cgi?id=99672 ** Bug watch added: freedesktop.org Bugzilla #99672 https://bugs.freedesktop.org/show_bug.cgi?id=99672 ** Package changed: kde-cli-tools (Ubuntu) => shared-mime-info (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1857824 Title: kmimetypefinder5 misidentifies mimetype of python files containing certain strings To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kde-cli-tools/+bug/1857824/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs