From: tobtoht Date: Fri, 21 Apr 2023 16:00:26 +0000 (+0200) Subject: TorManager: check for Tor bin in applicationDirPath X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=2179c073cd9f582cdc653d4da702475a23566d4b;p=gamesguru%2Ffeather.git TorManager: check for Tor bin in applicationDirPath --- diff --git a/src/utils/TorManager.cpp b/src/utils/TorManager.cpp index e600aebd..977711fc 100644 --- a/src/utils/TorManager.cpp +++ b/src/utils/TorManager.cpp @@ -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;