refactor: windows write daemon log in ProgramData\Deskflow
remove old log file on update
This commit is contained in:
parent
a4c82869a6
commit
2c55f4fe06
2 changed files with 1 additions and 4 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue