diff --git a/src/utils/TorManager.cpp b/src/utils/TorManager.cpp index c3e0dac..21d6b8f 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");