Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-52500

QLibraryInfo::location(QLibraryInfo::SettingsPath) gives wrong location

    XMLWordPrintable

Details

    Description

      The following code:

      #include <QApplication>
      #include <QStandardPaths>
      #include <QLibraryInfo>
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
          qDebug( qPrintable(QLibraryInfo::location(QLibraryInfo::SettingsPath)));
          return 0;
      }
      
      

      Logs: /opt/Qt/5.6/gcc_64/etc/xdg on 5.6 and /etc/xdg on 5.5.
      It is used by QSettings too so, if requesting settings from system scope, qt looks in /opt/qt/Qt5.6.0/5.6/gcc_64/etc/xdg on 5.6 and not in /etc/xdg.

      Attachments

        For Gerrit Dashboard: QTBUG-52500
        # Subject Branch Project Status CR V

        Activity

          People

            janihe Jani Heikkinen
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes