2018-01-26 23:07:07 +00:00
|
|
|
diff --git a/main.cpp b/main.cpp
|
2019-07-03 20:45:36 +01:00
|
|
|
index a51568d..5a9f683 100644
|
2018-01-26 23:07:07 +00:00
|
|
|
--- a/main.cpp
|
|
|
|
+++ b/main.cpp
|
2019-07-03 20:45:36 +01:00
|
|
|
@@ -152,7 +152,9 @@ int main(int argc, char *argv[])
|
2018-09-04 11:11:19 +01:00
|
|
|
QCommandLineOption logPathOption(QStringList() << "l" << "log-file",
|
|
|
|
QCoreApplication::translate("main", "Log to specified file"),
|
|
|
|
QCoreApplication::translate("main", "file"));
|
2019-07-03 20:45:36 +01:00
|
|
|
-
|
2018-09-04 11:11:19 +01:00
|
|
|
+ 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
|
2019-03-25 10:10:23 +00:00
|
|
|
index 6b1daba..c357762 100644
|
2018-09-04 11:11:19 +01:00
|
|
|
--- a/Logger.cpp
|
|
|
|
+++ b/Logger.cpp
|
2019-03-25 10:10:23 +00:00
|
|
|
@@ -28,8 +28,8 @@ static const QString defaultLogName = "monero-wallet-gui.log";
|
|
|
|
static const QString appFolder = "Library/Logs";
|
2018-09-04 11:11:19 +01:00
|
|
|
#else // linux + bsd
|
2019-03-25 10:10:23 +00:00
|
|
|
//HomeLocation = "~"
|
2018-09-04 11:11:19 +01:00
|
|
|
- static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0);
|
2019-03-25 10:10:23 +00:00
|
|
|
- static const QString appFolder = ".bitmonero";
|
2018-09-04 11:11:19 +01:00
|
|
|
+ static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::CacheLocation).at(0);
|
2019-03-25 10:10:23 +00:00
|
|
|
+ static const QString appFolder = "bitmonero";
|
2018-03-31 10:41:11 +01:00
|
|
|
#endif
|
2019-03-25 10:10:23 +00:00
|
|
|
|
2018-01-26 23:07:07 +00:00
|
|
|
|