[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] added HOME export setting for obfsproxy



commit 3ea0d1dcc1ee10c12bf00409a616c473067515bc
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date:   Sat Feb 11 22:41:10 2012 -0500

    added HOME export setting for obfsproxy
---
 src/org/torproject/android/service/TorService.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java
index e56539d..91e5e96 100644
--- a/src/org/torproject/android/service/TorService.java
+++ b/src/org/torproject/android/service/TorService.java
@@ -722,7 +722,10 @@ public class TorService extends Service implements TorServiceConstants, TorConst
 			torrcPath = new File(appBinHome, TORRC_TETHER_KEY).getAbsolutePath();
 		}
 		
-		String[] torCmd = {fileTor.getAbsolutePath() + " DataDirectory " + appDataHome.getAbsolutePath() + " -f " + torrcPath  + " || exit\n"};
+		String[] torCmd = {
+				"export HOME=" + appBinHome.getAbsolutePath(),
+				fileTor.getAbsolutePath() + " DataDirectory " + appDataHome.getAbsolutePath() + " -f " + torrcPath  + " || exit\n"
+				};
 		
 		boolean runAsRootFalse = false;
 		boolean waitForProcess = false;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits