Details
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
For Gerrit Dashboard: QTBUG-59389 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
187991,2 | Fix QStandardPaths values on Apple Platforms containing URL encoding | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |