30284.patch 1.1 KB

1234567891011121314151617181920212223
  1. From 4402f247643c7b3b730f0facaf1c45dc02d5721f Mon Sep 17 00:00:00 2001
  2. From: sisbell <shane.isbell@gmail.com>
  3. Date: Thu, 16 May 2019 21:33:06 +0000
  4. Subject: [PATCH] Fixes thaliproject#120: Tor Startup Broken on KitKat Devices
  5. diff --git a/universal/src/main/java/com/msopentech/thali/toronionproxy/TorConfig.java b/universal/src/main/java/com/msopentech/thali/toronionproxy/TorConfig.java
  6. index 3df0f12..1ab7c2d 100644
  7. --- a/universal/src/main/java/com/msopentech/thali/toronionproxy/TorConfig.java
  8. +++ b/universal/src/main/java/com/msopentech/thali/toronionproxy/TorConfig.java
  9. @@ -372,7 +372,7 @@ public final class TorConfig {
  10. public TorConfig build() {
  11. if(homeDir == null) {
  12. String userHome = System.getProperty("user.home");
  13. - homeDir = (userHome != null && !"".equals(userHome)) ? new File(userHome) : configDir;
  14. + homeDir = (userHome != null && !"".equals(userHome) && !"/".equals(userHome)) ? new File(userHome) : configDir;
  15. }
  16. if (torExecutableFile == null) {
  17. --
  18. 2.20.1