fixed default path for Tor on MacOS

This commit is contained in:
csoler 2019-01-29 13:37:06 +01:00
parent 0a67212e0e
commit b44d2c8772
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -472,6 +472,15 @@ QString TorManagerPrivate::torExecutablePath() const
return path + filename;
#endif
#ifdef __APPLE__
// on MacOS, try traditional brew installation path
path = QStringLiteral("/usr/local/opt/tor/bin") ;
if (QFile::exists(path + filename))
return path + filename;
#endif
// Try $PATH
return filename.mid(1);
}