I'm not sure using QStandardPaths before QCoreApplication is created is a good idea. [Q_GLOBAL_STATIC](http://qt-project.org/doc/qt-5/qglobalstatic.html#Q_GLOBAL_STATIC) would be a bit safer.