Set home directory in linux setup #587

Merged
dan merged 1 commits from fix_linux_install into trunk 2022-12-05 18:25:01 +00:00
1 changed files with 1 additions and 0 deletions

View File

@ -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()) {