From 0b6132897101c4cd1618c79049d5685c5e9874fa Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 3 Jul 2019 05:13:51 +0200 Subject: Detect tails, support data persistence Co-authored-by: Thotbot Co-authored-by: Selsta --- Logger.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Logger.cpp') diff --git a/Logger.cpp b/Logger.cpp index f2e34552..ad356bcb 100644 --- a/Logger.cpp +++ b/Logger.cpp @@ -34,6 +34,7 @@ #include #include "Logger.h" +#include "src/qt/TailsOS.h" #include "wallet/api/wallet2_api.h" // default log path by OS (should be writable) @@ -66,6 +67,9 @@ const QString getLogPath(const QString logPath) { const QFileInfo fi(logPath); + if(TailsOS::detect() && TailsOS::usePersistence) + return QDir::homePath() + "/Persistent/Monero/logs/" + defaultLogName; + if(!logPath.isEmpty() && !fi.isDir()) return fi.absoluteFilePath(); else { -- cgit v1.2.3