From ada351f778dade93d9808e700e5ff450221bdf2d Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Sun, 4 Dec 2022 09:32:22 -0800 Subject: [PATCH] Set home directory in linux setup Fix: #586 --- lib/cwtch/ffi.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cwtch/ffi.dart b/lib/cwtch/ffi.dart index b1b63bc9..a6fc8c33 100644 --- a/lib/cwtch/ffi.dart +++ b/lib/cwtch/ffi.dart @@ -153,6 +153,7 @@ class CwtchFfi implements Cwtch { String cwtchDir = ""; if (Platform.isLinux) { cwtchDir = envVars['CWTCH_HOME'] ?? path.join(envVars['HOME']!, ".cwtch"); + home = envVars['HOME'] ?? ""; if (await File("linux/Tor/tor").exists()) { bundledTor = "linux/Tor/tor"; } else if (await File("lib/Tor/tor").exists()) {