nixpkgs/pkgs/applications/altcoins/monero-gui/move-log-file.patch

31 lines
1.2 KiB
Diff
Raw Normal View History

2018-01-26 23:07:07 +00:00
diff --git a/main.cpp b/main.cpp
2019-07-03 19:45:36 +00:00
index a51568d..5a9f683 100644
2018-01-26 23:07:07 +00:00
--- a/main.cpp
+++ b/main.cpp
2019-07-03 19:45:36 +00:00
@@ -152,7 +152,9 @@ int main(int argc, char *argv[])
2018-09-04 10:11:19 +00:00
QCommandLineOption logPathOption(QStringList() << "l" << "log-file",
QCoreApplication::translate("main", "Log to specified file"),
QCoreApplication::translate("main", "file"));
2019-07-03 19:45:36 +00:00
-
2018-09-04 10:11:19 +00: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 10:11:19 +00: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 10:11:19 +00:00
#else // linux + bsd
2019-03-25 10:10:23 +00:00
//HomeLocation = "~"
2018-09-04 10:11:19 +00: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 10:11:19 +00: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 09:41:11 +00:00
#endif
2019-03-25 10:10:23 +00:00
2018-01-26 23:07:07 +00:00