diff --git a/src/persistence/settings.cpp b/src/persistence/settings.cpp index be9b9a97d..cbdd3583e 100644 --- a/src/persistence/settings.cpp +++ b/src/persistence/settings.cpp @@ -565,7 +565,10 @@ QString Settings::getAppDataDirPath() return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + QDir::separator() + "Library" + QDir::separator() + "Application Support" + QDir::separator() + "Tox")+QDir::separator(); #else - return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + // TODO: change QStandardPaths::DataLocation to AppDataLocation when upgrate Qt to 5.4+ + // For now we need support Qt 5.3, so we use deprecated DataLocation + // BTW, it's not a big deal since for linux AppDataLocation and DataLocation are equal + return QDir::cleanPath(QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QDir::separator() + "tox")+QDir::separator(); #endif }