Details
Description
XDG Base Directory Specification (https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.8.html) says about $XDG_* variables:
If an implementation encounters a relative path in any of these variables it should consider the path invalid and ignore it.
But QStandardPaths::writableLocation uses values from XDG variables also when they contain relative paths.
Attachments
For Gerrit Dashboard: QTBUG-58043 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
456911,5 | QStandardPaths/unix: ignore relative paths in all $XDG_* env vars | dev | qt/qtbase | Status: MERGED | +2 | 0 |
458149,5 | QStandardPaths/unix: ignore relative paths in all $XDG_* env vars | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
458323,1 | QStandardPaths/unix: ignore relative paths in all $XDG_* env vars | 6.5 | qt/qtbase | Status: ABANDONED | 0 | 0 |
458987,3 | QStandardPaths/unix: ignore relative paths in all $XDG_* env vars | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
458990,4 | QStandardPaths/unix: ignore relative paths in all $XDG_* env vars | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |