added HOME export setting for obfsproxy

This commit is contained in:
Nathan Freitas 2012-02-11 22:41:10 -05:00
parent a2653393b0
commit 3ea0d1dcc1
1 changed files with 4 additions and 1 deletions

View File

@ -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;