From 3ea0d1dcc1ee10c12bf00409a616c473067515bc Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Sat, 11 Feb 2012 22:41:10 -0500 Subject: [PATCH] added HOME export setting for obfsproxy --- src/org/torproject/android/service/TorService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java index e56539d4..91e5e963 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;