Revert "TorManager: TOR_INSTALLED, set fallback tor dir"

This reverts commit fce3b03388.
This commit is contained in:
tobtoht 2023-05-24 21:53:28 +02:00
parent a8a7594cc1
commit 12aa36a1e3
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -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");