mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-03 17:39:49 +00:00
TorManager: check for Tor bin in applicationDirPath
This commit is contained in:
parent
7e89310386
commit
2179c073cd
1 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,12 @@ void TorManager::start() {
|
||||||
return;
|
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);
|
qDebug() << QString("Start process: %1").arg(this->torPath);
|
||||||
|
|
||||||
m_restarts += 1;
|
m_restarts += 1;
|
||||||
|
|
Loading…
Reference in a new issue