diff --git a/src/gui/syncrunfilelog.cpp b/src/gui/syncrunfilelog.cpp index 5610fb6a02ff7..2d95d134bf488 100644 --- a/src/gui/syncrunfilelog.cpp +++ b/src/gui/syncrunfilelog.cpp @@ -32,7 +32,10 @@ void SyncRunFileLog::start(const QString &folderPath) { const qint64 logfileMaxSize = 10 * 1024 * 1024; // 10MiB - const QString logpath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); + const QString logpath = + !Utility::isWindows() + ? QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + : QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); if(!QDir(logpath).exists()) { QDir().mkdir(logpath); }