mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed default path for Tor on MacOS
This commit is contained in:
parent
0a67212e0e
commit
b44d2c8772
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user