TorManager: check for Tor bin in applicationDirPath

This commit is contained in:
tobtoht 2023-04-21 18:00:26 +02:00
parent 7e89310386
commit 2179c073cd
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -72,6 +72,12 @@ void TorManager::start() {
return;
}
QFile torFile{this->torPath};
QString alternativeTorFile = QCoreApplication::applicationDirPath() + "/tor";
if (!torFile.exists() && QFileInfo(alternativeTorFile).isFile()) {
this->torPath = alternativeTorFile;
}
qDebug() << QString("Start process: %1").arg(this->torPath);
m_restarts += 1;