mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-03 09:47:25 -04:00
Detect tails, support data persistence
Co-authored-by: Thotbot <thotbot@protonmail.com> Co-authored-by: Selsta <selsta@sent.at>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user