From: tobtoht Date: Wed, 24 May 2023 19:53:28 +0000 (+0200) Subject: Revert "TorManager: TOR_INSTALLED, set fallback tor dir" X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=12aa36a1e3cc9e7eb2ed9a02f2b86c230d58c90f;p=gamesguru%2Ffeather.git Revert "TorManager: TOR_INSTALLED, set fallback tor dir" This reverts commit fce3b0338854b6e488cf4406eb5c6f6e75c55a2d. --- diff --git a/src/utils/TorManager.cpp b/src/utils/TorManager.cpp index c3e0dacf..21d6b8f3 100644 --- a/src/utils/TorManager.cpp +++ b/src/utils/TorManager.cpp @@ -21,15 +21,9 @@ TorManager::TorManager(QObject *parent) connect(m_checkConnectionTimer, &QTimer::timeout, this, &TorManager::checkConnection); this->torDir = Config::defaultConfigDir().filePath("tor"); - #if defined(TOR_INSTALLED) - QString installedTorPath = QDir(Utils::applicationPath()).filePath("tor"); - bool installedTorPathIsDir = QFileInfo(torPath).isDir(); - if (installedTorPathIsDir) { - this->torDir = installedTorPath; - } else { - this->torDir = Utils::applicationPath(); - } + // When installed, use directory relative to application path. + this->torDir = QDir(Utils::applicationPath()).filePath("tor"); #endif this->torDataPath = Config::defaultConfigDir().filePath("tor/data");