refactor: windows write daemon log in ProgramData\Deskflow

remove old log file on update
This commit is contained in:
sithlord48 2025-07-19 10:05:00 -04:00 committed by Nick Bolton
parent a4c82869a6
commit 2c55f4fe06
2 changed files with 1 additions and 4 deletions

View file

@ -17,6 +17,7 @@
/>
</ServiceInstall>
<ServiceControl Id="ServiceControl" Name="Deskflow" Remove="uninstall" Start="install" Stop="both"/>
<RemoveFile Id="RmOldLog" On="install" Name="deskflow-daemon.log"/>
</CPackWiXFragment>
<CPackWiXFragment Id="CM_CP_deskflow_server.exe">

View file

@ -129,11 +129,7 @@ QVariant Settings::defaultValue(const QString &key)
}
if (key == Daemon::LogFile) {
#ifdef Q_OS_WIN
return QStringLiteral("%1/%2").arg(QCoreApplication::applicationDirPath(), kDaemonLogFilename);
#else
return QStringLiteral("%1/%2").arg(Settings::settingsPath(), kDaemonLogFilename);
#endif
}
return QVariant();