mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-01 09:36:46 -04:00
fixed default path for Tor on MacOS
This commit is contained in:
parent
0a67212e0e
commit
b44d2c8772
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue