2018-01-26 23:07:07 +00:00
|
|
|
diff --git a/main.cpp b/main.cpp
|
2018-09-04 11:11:19 +01:00
|
|
|
index 79223c0..e80b317 100644
|
2018-01-26 23:07:07 +00:00
|
|
|
--- a/main.cpp
|
|
|
|
+++ b/main.cpp
|
2018-09-04 11:11:19 +01:00
|
|
|
@@ -115,6 +115,9 @@ int main(int argc, char *argv[])
|
|
|
|
QCommandLineOption logPathOption(QStringList() << "l" << "log-file",
|
|
|
|
QCoreApplication::translate("main", "Log to specified file"),
|
|
|
|
QCoreApplication::translate("main", "file"));
|
|
|
|
+ logPathOption.setDefaultValue(
|
|
|
|
+ QStandardPaths::writableLocation(QStandardPaths::CacheLocation)
|
|
|
|
+ + "/monero-wallet-gui.log");
|
|
|
|
parser.addOption(logPathOption);
|
|
|
|
parser.addHelpOption();
|
|
|
|
parser.process(app);
|
|
|
|
diff --git a/Logger.cpp b/Logger.cpp
|
|
|
|
index 660bafc..dae24d4 100644
|
|
|
|
--- a/Logger.cpp
|
|
|
|
+++ b/Logger.cpp
|
|
|
|
@@ -15,7 +15,7 @@ static const QString default_name = "monero-wallet-gui.log";
|
|
|
|
#elif defined(Q_OS_MAC)
|
|
|
|
static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0) + "/Library/Logs";
|
|
|
|
#else // linux + bsd
|
|
|
|
- static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0);
|
|
|
|
+ static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::CacheLocation).at(0);
|
2018-03-31 10:41:11 +01:00
|
|
|
#endif
|
2018-09-04 11:11:19 +01:00
|
|
|
|
2018-01-26 23:07:07 +00:00
|
|
|
|