From be0c4f4d644a23f5f5753818a8136d5f40607607 Mon Sep 17 00:00:00 2001 From: fyne Date: Sat, 4 Sep 2021 18:48:49 +0100 Subject: [PATCH] Leave the Cwtch.app local path in --- lib/cwtch/ffi.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cwtch/ffi.dart b/lib/cwtch/ffi.dart index 43f2aa32..8ab357c9 100644 --- a/lib/cwtch/ffi.dart +++ b/lib/cwtch/ffi.dart @@ -115,7 +115,9 @@ class CwtchFfi implements Cwtch { bundledTor = "Tor\\Tor\\tor.exe"; } else if (Platform.isMacOS) { cwtchDir = envVars['CWTCH_HOME'] ?? path.join(envVars['HOME']!, "Library/Application Support/Cwtch"); - if (await File("/Applications/Cwtch.app/Contents/MacOS/Tor/tor.real").exists()) { + if (await File("Cwtch.app/Contents/MacOS/Tor/tor.real").exists()) { + bundledTor = "Cwtch.app/Contents/MacOS/Tor/tor.real"; + } else if (await File("/Applications/Cwtch.app/Contents/MacOS/Tor/tor.real").exists()) { 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";