Fix for #18 - correctly pass the HOME environment variable in to the syncthing process.
This commit is contained in:
parent
726f62061d
commit
a3965c6b83
|
@ -135,7 +135,7 @@ public class SyncthingService extends Service {
|
|||
process = Runtime.getRuntime().exec("sh");
|
||||
dos = new DataOutputStream(process.getOutputStream());
|
||||
// Set home directory to data folder for syncthing to use.
|
||||
dos.writeBytes("HOME=" + getFilesDir() + "\n");
|
||||
dos.writeBytes("HOME=" + getFilesDir() + " ");
|
||||
// Call syncthing with -home (as it would otherwise use "~/.config/syncthing/".
|
||||
dos.writeBytes(getApplicationInfo().dataDir + "/" + BINARY_NAME + " " +
|
||||
"-home " + getFilesDir() + "\n");
|
||||
|
|
Loading…
Reference in New Issue