aboutsummaryrefslogtreecommitdiff
path: root/Logger.cpp
diff options
context:
space:
mode:
authordsc <xmrdsc@protonmail.com>2019-07-03 05:13:51 +0200
committerdsc <xmrdsc@protonmail.com>2019-07-16 18:33:44 +0200
commit0b6132897101c4cd1618c79049d5685c5e9874fa (patch)
treee59e9bf4eaff9296b9c10a9d9a7207b565a2ae1c /Logger.cpp
parentcfec9dde968cb89f8fe5293958b82181348111ea (diff)
downloadmonzero-gui-0b6132897101c4cd1618c79049d5685c5e9874fa.tar.gz
monzero-gui-0b6132897101c4cd1618c79049d5685c5e9874fa.tar.xz
monzero-gui-0b6132897101c4cd1618c79049d5685c5e9874fa.zip
Detect tails, support data persistence
Co-authored-by: Thotbot <thotbot@protonmail.com> Co-authored-by: Selsta <selsta@sent.at>
Diffstat (limited to 'Logger.cpp')
-rw-r--r--Logger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Logger.cpp b/Logger.cpp
index f2e34552..ad356bcb 100644
--- a/Logger.cpp
+++ b/Logger.cpp
@@ -34,6 +34,7 @@
#include <QDebug>
#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 {