Before patch:
$ qtpaths --paths GenericDataLocation
/Users/alex/Library/Application Support:/Users/alex/kde/share:/Library/Application Support:/Users/alex/kde/bin
After this change:
$ qtpaths --paths GenericDataLocation
/Users/alex/Library/Application Support:/Library/Application Support:/Users/alex/kde/bin
Also supported now:
$ QT_DATA_DIRS=/foo/bar qtpaths --paths GenericDataLocation
/Users/alex/Library/Application Support:/foo/bar:/Library/Application Support:/Users/alex/kde/bin
I have added this patch for upstream review as https://codereview.qt-project.org/#/c/238640/