From b44d2c8772ad5d7bd171424ad29988963bb4473f Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 29 Jan 2019 13:37:06 +0100 Subject: [PATCH] fixed default path for Tor on MacOS --- retroshare-gui/src/TorControl/TorManager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/retroshare-gui/src/TorControl/TorManager.cpp b/retroshare-gui/src/TorControl/TorManager.cpp index b538964e9..2bda04647 100644 --- a/retroshare-gui/src/TorControl/TorManager.cpp +++ b/retroshare-gui/src/TorControl/TorManager.cpp @@ -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); }