Merge pull request #1075

08beb71 Store wallet log in ~/Library/Logs/ in macOS
This commit is contained in:
luigi1111 2018-03-13 17:03:58 -04:00
commit 92a62da383
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -724,7 +724,13 @@ QString Wallet::getDaemonLogPath() const
QString Wallet::getWalletLogPath() const
{
return QCoreApplication::applicationDirPath() + "/monero-wallet-gui.log";
const QString filename("monero-wallet-gui.log");
#ifdef Q_OS_MACOS
return QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0) + "/Library/Logs/" + filename;
#else
return QCoreApplication::applicationDirPath() + "/" + filename;
#endif
}
Wallet::Wallet(Monero::Wallet *w, QObject *parent)