From b53f43d946e2afad4f8af1b81f2e11943ed18a25 Mon Sep 17 00:00:00 2001 From: fyne Date: Sat, 4 Sep 2021 14:41:01 +0100 Subject: [PATCH] Allow the fallback to the Tor Browser tor.real --- lib/cwtch/ffi.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cwtch/ffi.dart b/lib/cwtch/ffi.dart index bd8462d3..43f2aa32 100644 --- a/lib/cwtch/ffi.dart +++ b/lib/cwtch/ffi.dart @@ -119,6 +119,9 @@ class CwtchFfi implements Cwtch { bundledTor = "/Applications/Cwtch.app/Contents/MacOS/Tor/tor.real"; } else if (await File("/Volumes/Cwtch/Cwtch.app/Contents/MacOS/Tor/tor.real").exists()) { bundledTor = "/Volumes/Cwtch/Cwtch.app/Contents/MacOS/Tor/tor.real"; + } else if (await File("/Applications/Tor Browser.app/Contents/MacOS/Tor/tor.real").exists()) { + bundledTor = "/Applications/Tor Browser.app/Contents/MacOS/Tor/tor.real"; + print("We couldn't find Tor in the Cwtch app directory, however we can fall back to the Tor Browser binary"); } else { var splitPath = path.split(dirname(Platform.script.path)); if (splitPath[0] == "/" && splitPath[1] == "Applications"){