Skip to content
Permalink
Browse files

use XDG_CACHE_DIR for the log file

  • Loading branch information...
rnhmjoj committed Jul 5, 2019
1 parent c4b3fba commit a1e41947e8dbce930efdfe3e616b5d92453108a7
Showing with 5 additions and 3 deletions.
  1. +2 −2 Logger.cpp
  2. +3 −1 main.cpp
@@ -56,8 +56,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


@@ -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);

0 comments on commit a1e4194

Please sign in to comment.
You can’t perform that action at this time.