From 7da1d4f9cc0fb474a6ab4e4e4bcf4593ac67f3ce Mon Sep 17 00:00:00 2001 From: XinyuHou Date: Wed, 25 Mar 2015 16:39:44 +0000 Subject: [PATCH] #6347 made log to home directory by default --- src/gui/src/AppConfig.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/gui/src/AppConfig.cpp b/src/gui/src/AppConfig.cpp index 3fac02a9..0e15aa58 100644 --- a/src/gui/src/AppConfig.cpp +++ b/src/gui/src/AppConfig.cpp @@ -86,13 +86,8 @@ const QString &AppConfig::logFilename() const { return m_LogFilename; } QString AppConfig::synergyLogDir() const { -#if defined(Q_OS_WIN) - // on windows, we want to log to program files - return synergyProgramDir() + "log/"; -#else - // on unix, we'll log to the standard log dir - return "/var/log/"; -#endif + // by default log to home dir + return QDir::home().absolutePath() + "/"; } QString AppConfig::synergyProgramDir() const