Make QStandardPaths work on macOS
This uses the patch from qtbug 61159, which applies fine, so why the qt people are releasing an LTS with a regression like this is a mystery.