Save the log to path sandboxed GUI app can access

This commit is contained in:
Matti Viljanen 2022-03-19 21:55:11 +02:00
parent eb68f75173
commit b69897a3d8
No known key found for this signature in database
GPG key ID: CF32A1495158F888

View file

@ -37,7 +37,7 @@ bool Logger::getDebug() { return debug; }
bool Logger::getVerbose() { return verbose; }
void Logger::enableLogFile() {
QString logDir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
QString logDir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation).replace("-daemon","");
filename = QString(logDir + "/" + APP_NAME + ".log");
std::cout << "Logging to " << filename.toStdString() << std::endl;