When setting XDG_RUNTIME_DIR=does_not_exist and then trying to get the runtime location, the error printed is:
The error is quite confusing - I think the case with the directory not existing should be handled separately before trying to set the ownership.
|For Gerrit Dashboard: QTBUG-48771|
|142482,1||QStandardPaths: warn if $XDG_RUNTIME_DIR doesn't exist||dev||qt/qtbase||Status: ABANDONED||0||0|
|142505,4||QStandardPaths: warn if $XDG_RUNTIME_DIR doesn't exist||5.6||qt/qtbase||Status: MERGED||+2||0|