Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22636

libUtils depends on private Qt copy of the FDO MIME type database

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.10.0-rc1
    • Qt Creator 4.10.0-beta2, Qt Creator 4.11.0-beta1
    • Editors
    • None
    • 64d2965e29b0583030848bf8c82f76e1dc7e0ec8 (qt-creator/qt-creator/4.10)

    Description

      src/libs/utils/mimetypes/mimeprovider.cpp
      //        const QStringList packageDirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QLatin1String("mime/packages"), QStandardPaths::LocateDirectory);
      //        //qDebug() << "packageDirs=" << packageDirs;
      //        for (const QString &packageDir : packageDirs) {
      //            QDir dir(packageDir);
      //            const QStringList files = dir.entryList(QDir::Files | QDir::NoDotAndDotDot);
      //            //qDebug() << static_cast<const void *>(this) << packageDir << files;
      //            if (!fdoXmlFound)
      //                fdoXmlFound = files.contains(QLatin1String("freedesktop.org.xml"));
      //            QStringList::const_iterator endIt(files.constEnd());
      //            for (QStringList::const_iterator it(files.constBegin()); it != endIt; ++it) {
      //                allFiles.append(packageDir + QLatin1Char('/') + *it);
      //            }
      //        }
      
      //        if (!fdoXmlFound) {
      //            // We could instead install the file as part of installing Qt?
                    const char freedesktopOrgXml[] = ":/qt-project.org/qmime/packages/freedesktop.org.xml";
                  allFiles.prepend(QLatin1String(freedesktopOrgXml));
      

      This is referring to private content that I am removing from Qt. Please find another way of getting the database.

      Why don't you use QMimeDatabase?

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-22636
        # Subject Branch Project Status CR V

        Activity

          People

            con Eike Ziller
            thiago Thiago Macieira
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes