1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-24 11:17:15 +01:00

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)