From 98bbd659221aceb30f086b9f12bc3104810d8e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 9 Feb 2016 17:18:16 +0100 Subject: [PATCH] fix log path --- libguh/guhsettings.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libguh/guhsettings.cpp b/libguh/guhsettings.cpp index 7e5b5e0f..8ff2def6 100644 --- a/libguh/guhsettings.cpp +++ b/libguh/guhsettings.cpp @@ -190,7 +190,7 @@ QString GuhSettings::logPath() { QString logPath; #ifdef SNAPPY - logPath = qgetenv("SNAP_APP_DATA_PATH") + "/guhd.log"; + logPath = qgetenv("SNAP_APP_DATA_PATH") + "/guhd.sqlite"; #else QString organisationName = QCoreApplication::instance()->organizationName(); @@ -210,6 +210,9 @@ QString GuhSettings::logPath() QString GuhSettings::consoleLogPath() { QString consoleLogPath; +#ifdef SNAPPY + consoleLogPath = qgetenv("SNAP_APP_DATA_PATH") + "/guhd.log"; +#else QString organisationName = QCoreApplication::instance()->organizationName(); if (organisationName == "guh-test") { @@ -219,6 +222,7 @@ QString GuhSettings::consoleLogPath() } else { consoleLogPath = QDir::homePath() + "/.config/" + organisationName + "/guhd.log"; } +#endif // SNAPPY return consoleLogPath; }