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

16 lines
588 B
Diff
Raw Normal View History

2018-01-27 00:07:07 +01:00
diff --git a/main.cpp b/main.cpp
2019-07-03 21:45:36 +02:00
index a51568d..5a9f683 100644
2018-01-27 00:07:07 +01:00
--- a/main.cpp
+++ b/main.cpp
2019-07-03 21:45:36 +02:00
@@ -152,7 +152,9 @@ int main(int argc, char *argv[])
2018-09-04 12:11:19 +02:00
QCommandLineOption logPathOption(QStringList() << "l" << "log-file",
QCoreApplication::translate("main", "Log to specified file"),
QCoreApplication::translate("main", "file"));
2019-07-03 21:45:36 +02:00
-
2018-09-04 12:11:19 +02:00
+ logPathOption.setDefaultValue(
+ QStandardPaths::writableLocation(QStandardPaths::CacheLocation)
+ + "/monero-wallet-gui.log");
parser.addOption(logPathOption);
parser.addHelpOption();
parser.process(app);