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

QDesktopServices::storageLocation does not include CompanyName as part of the string on Mac OS X.

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.6.0
    • 4.4.3
    • Core: Other
    • None
    • macOS

      Using QDesktopServices::storageLocation(), on Mac OS X the CompanyName is not included as part of the string.

      int main(int argc, char **argv) {

      QApplication app(argc, argv);

      QCoreApplication::setApplicationName("AppName");
      QCoreApplication::setApplicationVersion("AppVersion");
      QCoreApplication::setOrganizationName("OrgName");
      QCoreApplication::setOrganizationDomain("CompanyName");

      QString location =
      QDesktopServices::storageLocation(QDesktopServices::DataLocation);
      qDebug(location.toAscii());

      return 0;
      }

      The output of this program on all three platforms:

      linux: /home/dragor/.local/share/data/OrgName/AppName
      mac: /Volumes/Macintosh HD/Users/dragor/Library/Application Support/AppName
      win: C:\Documents and Settings\dragor\Local Settings\ApplicationData\OrgName\AppName

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sorvig Morten Sørvig
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes