[Bug 1857824] Re: kmimetypefinder5 misidentifies mimetype of python files containing certain strings
Kai Kasurinen
1857824 at bugs.launchpad.net
Wed Sep 23 15:40:34 UTC 2020
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 Kubuntu
Bugs, which is subscribed to kde-cli-tools in 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
More information about the kubuntu-bugs
mailing list