Skip to content

Commit

Permalink
Ensure to use abs path for log file
Browse files Browse the repository at this point in the history
Fixes: #10346
  • Loading branch information
TheOneRing committed Dec 21, 2022
1 parent 540b1dc commit 20db40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void Logger::setLogDebug(bool debug)

QString Logger::temporaryFolderLogDirPath() const
{
return QDir::temp().filePath(QStringLiteral("%1-logdir").arg(qApp->applicationName()));
return QDir::temp().absoluteFilePath(QStringLiteral("%1-logdir").arg(QCoreApplication::applicationName()));
}

void Logger::setupTemporaryFolderLogDir()
Expand Down

0 comments on commit 20db40e

Please sign in to comment.