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

QStandardPaths::standardLocations(QStandardPaths::DataLocation) some paths have escaped spaces to %20

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9
    • 5.8.0
    • Core: I/O
    • None
    • Mac OS X, Qt 5.8 downloaded from qt.io
    • c0da37a806dc0457636d787331e9f50778ee8b3e

    Description

      On OS X
      QStandardPaths::standardLocations(QStandardPaths::DataLocation).last()
      returns path to Resources folder inside app bundle ("<APPDIR>/../Resources")
      But since Qt 5.8 if <APPDIR> contains any spaces returned path will have them escaped to %20 and instead /Users/user/Awsome Qt App/Awsome Qt Application.app/Contents/Resources/
      returned path is /Users/user/Awsome%20Qt%20App/Awsome%20Qt%20Application.app/Contents/Resources/ making it impossible to access bundled resources.

      Other paths returned in array (/Users/user/Library/Application Support/... and /Library/Application Support/... are correct (i.e. not url encoded).

      Same thing happens asking for QStandardPaths::AppDataLocation and QStandardPaths::AppLocalDataLocation

      Attachments

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

        Activity

          People

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            ivang Ivan Golubovic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes