mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
diff --git a/main.cpp b/main.cpp
|
|
index a51568d..5a9f683 100644
|
|
--- a/main.cpp
|
|
+++ b/main.cpp
|
|
@@ -152,7 +152,9 @@ int main(int argc, char *argv[])
|
|
QCommandLineOption logPathOption(QStringList() << "l" << "log-file",
|
|
QCoreApplication::translate("main", "Log to specified file"),
|
|
QCoreApplication::translate("main", "file"));
|
|
-
|
|
+ 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
|
|
index 6b1daba..c357762 100644
|
|
--- a/Logger.cpp
|
|
+++ b/Logger.cpp
|
|
@@ -28,8 +28,8 @@ static const QString defaultLogName = "monero-wallet-gui.log";
|
|
static const QString appFolder = "Library/Logs";
|
|
#else // linux + bsd
|
|
//HomeLocation = "~"
|
|
- static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0);
|
|
- static const QString appFolder = ".bitmonero";
|
|
+ static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::CacheLocation).at(0);
|
|
+ static const QString appFolder = "bitmonero";
|
|
#endif
|
|
|
|
|