3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/blockchains/monero-gui/move-log-file.patch

16 lines
588 B
Diff
Raw Normal View History

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);