Qt actually prefers system copy from shared-mime-info if it's available. Here is the code for 5.12.8 (used in Ubuntu 20.04):
https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/mimetypes/qmimedatabase.cpp?h=5.12.8#n99
The internal copy (":/qt-project.org/qmime") is only used when the system one is missing (fdoIterator == mimeDirs.constEnd()).
Furthermore, in Ubuntu 20.10 and 21.04 we are building Qt with -no-mimetype-database, which makes Qt use *only* the system copy:
https://salsa.debian.org/qt-kde-team/qt/qtbase/-/commit/f0d53be16a31ea55
So I think it is a bug in shared-mime-info only, not in Qt. Do you agree?
Qt actually prefers system copy from shared-mime-info if it's available. Here is the code for 5.12.8 (used in Ubuntu 20.04):
https:/ /code.qt. io/cgit/ qt/qtbase. git/tree/ src/corelib/ mimetypes/ qmimedatabase. cpp?h=5. 12.8#n99
The internal copy (":/qt- project. org/qmime" ) is only used when the system one is missing (fdoIterator == mimeDirs. constEnd( )).
Furthermore, in Ubuntu 20.10 and 21.04 we are building Qt with -no-mimetype- database, which makes Qt use *only* the system copy:
https:/ /salsa. debian. org/qt- kde-team/ qt/qtbase/ -/commit/ f0d53be16a31ea5 5
So I think it is a bug in shared-mime-info only, not in Qt. Do you agree?