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

16 lines
588 B
Diff
Raw Normal View History

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