mirror of
https://github.com/monero-project/monero-gui
synced 2024-11-24 11:17:15 +01:00
Store wallet log in ~/Library/Logs/ in macOS
In macOS it is not usual to modify anything inside an application. If the user that runs the application doesn't have writing permissions the log will not be saved. This modifies the path to store them in macOS' standard location for application logs.
This commit is contained in:
parent
3b069ec049
commit
08beb71cca
@ -658,7 +658,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)
|
||||
|
Loading…
Reference in New Issue
Block a user