From bab2243424d9b24a9807bb6a422e7128c992bf5f Mon Sep 17 00:00:00 2001 From: Lode Hoste Date: Sun, 22 Mar 2015 14:21:48 +0100 Subject: [PATCH] Disable ST upgrade in runnable (fixes #276). --- .../nutomic/syncthingandroid/syncthing/SyncthingRunnable.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java index a33a1886..ba76744a 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java @@ -51,6 +51,7 @@ public class SyncthingRunnable implements Runnable { dos.writeBytes("HOME=" + Environment.getExternalStorageDirectory() + " "); dos.writeBytes("STTRACE=" + pm.getString("sttrace", "") + " "); dos.writeBytes("STNORESTART=1 "); + dos.writeBytes("STNOUPGRADE=1 "); // Call syncthing with -home (as it would otherwise use "~/.config/syncthing/". dos.writeBytes(mCommand + " -home " + mContext.getFilesDir() + "\n"); dos.writeBytes("exit\n");