[Bug 1857824] Re: kmimetypefinder5 misidentifies mimetype of python files containing certain strings
Could you please stop that reassigning game? You are right, it's either on shared-mime-info or the qt integration, now the result of the testcase provided is correct on GNOME (see comment 5), it's also correct on a cloud instance (e.g no desktop integration) so it's only buggy on KDE, you should rather reassign to the Qt integration, unsure what the right component for that is though ** Package changed: shared-mime-info (Ubuntu) => kde-cli-tools (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info 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 -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1857824] Re: kmimetypefinder5 misidentifies mimetype of python files containing certain strings
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 Desktop Bugs, which is subscribed to shared-mime-info 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 -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1857824] Re: kmimetypefinder5 misidentifies mimetype of python files containing certain strings
@Kai, so you use a 'command is provided by a perl utility' as a reason to reasing to shared-mime-info, what's the logic? also xdg-mime works fine under GNOME or when using gio that uses shared-mime-info... ** Package changed: shared-mime-info (Ubuntu) => kde-cli-tools (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info 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 -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1857824] Re: kmimetypefinder5 misidentifies mimetype of python files containing certain strings
> dpkg -S /usr/bin/mimetype libfile-mimeinfo-perl: /usr/bin/mimetype > /usr/bin/mimetype --magic-only foo.py foo.py: application/xhtml+xml ** Package changed: kde-cli-tools (Ubuntu) => shared-mime-info (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info 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/shared-mime-info/+bug/1857824/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1857824] Re: kmimetypefinder5 misidentifies mimetype of python files containing certain strings
it's not a shared-mime-info issue, on a GNOME session the result is right $ xdg-mime query filetype index.py text/x-python ** Package changed: shared-mime-info (Ubuntu) => kde-cli-tools (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info 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 -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1857824] Re: kmimetypefinder5 misidentifies mimetype of python files containing certain strings
** Package changed: kde-cli-tools (Ubuntu) => shared-mime-info (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to shared-mime-info 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/shared-mime-info/+bug/1857824/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs