@@ -1,38 +1,27 @@
11diff --git a/main.cpp b/main.cpp
2−index c03b160..a8ea263 100644
2+index 79223c0..e80b317 100644
33--- a/main.cpp
44+++ b/main.cpp
5−@@ -80,14 +80,16 @@ int main(int argc, char *argv[])
6− // qDebug() << "High DPI auto scaling - enabled";
7− //#endif
8−
9−- // Log settings
10−- Monero::Wallet::init(argv[0], "monero-wallet-gui");
11−-// qInstallMessageHandler(messageHandler);
12−-
13− MainApp app(argc, argv);
14−
15− qDebug() << "app startd";
16−
17−+ // Log settings
18−+ QString logfile =
19−+ QStandardPaths::writableLocation(QStandardPaths::CacheLocation)
20−+ + "/monero-wallet-gui.log";
21−+ Monero::Wallet::init(argv[0], logfile.toUtf8().constData());
22−+
23− app.setApplicationName("monero-core");
24− app.setOrganizationDomain("getmonero.org");
25− app.setOrganizationName("monero-project");
26−diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp
27−index 74649ce..fe1efc6 100644
28−--- a/src/libwalletqt/Wallet.cpp
29−+++ b/src/libwalletqt/Wallet.cpp
30−@@ -729,7 +729,7 @@ QString Wallet::getWalletLogPath() const
31− #ifdef Q_OS_MACOS
32− return QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0) + "/Library/Logs/" + filename;
33− #else
34−- return QCoreApplication::applicationDirPath() + "/" + filename;
35−+ return QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + filename;
5+@@ -115,6 +115,9 @@ int main(int argc, char *argv[])
6+ QCommandLineOption logPathOption(QStringList() << "l" << "log-file",
7+ QCoreApplication::translate("main", "Log to specified file"),
8+ QCoreApplication::translate("main", "file"));
9++ logPathOption.setDefaultValue(
10++ QStandardPaths::writableLocation(QStandardPaths::CacheLocation)
11++ + "/monero-wallet-gui.log");
12+ parser.addOption(logPathOption);
13+ parser.addHelpOption();
14+ parser.process(app);
15+diff --git a/Logger.cpp b/Logger.cpp
16+index 660bafc..dae24d4 100644
17+--- a/Logger.cpp
18++++ b/Logger.cpp
19+@@ -15,7 +15,7 @@ static const QString default_name = "monero-wallet-gui.log";
20+ #elif defined(Q_OS_MAC)
21+ static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0) + "/Library/Logs";
22+ #else // linux + bsd
23+- static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0);
24++ static const QString osPath = QStandardPaths::standardLocations(QStandardPaths::CacheLocation).at(0);
3625 #endif
37− }
26+
3827