summaryrefslogtreecommitdiff
path: root/android/Bootstrap/src
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-04-05 20:31:13 +0300
committerTor Lillqvist <tlillqvist@suse.com>2012-04-05 20:46:22 +0300
commitcafcd8577480d79baa070cec3bd1cb973d06f88c (patch)
tree5ea4deb66bb6b3d63f5a04824869cc8bb1cccef5 /android/Bootstrap/src
parentc5154a179f435cc23798057895b0db8312bcd6f6 (diff)
Set TMPDIR also in non-NativeActivity apps
Diffstat (limited to 'android/Bootstrap/src')
-rw-r--r--android/Bootstrap/src/org/libreoffice/android/Bootstrap.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
index 98df770b494d..b562da8964a3 100644
--- a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
+++ b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
@@ -139,6 +139,9 @@ public class Bootstrap extends NativeActivity
}
if (i != null)
putenv("FONTCONFIG_FILE=" + dataDir + "/etc/fonts/fonts.conf");
+
+ // TMPDIR is used by osl_getTempDirURL()
+ putenv("TMPDIR=" + activity.getCacheDir().getAbsolutePath());
}
@Override
@@ -186,9 +189,6 @@ public class Bootstrap extends NativeActivity
argv = Arrays.copyOfRange(argv, 1, argv.length-1);
}
- // TMPDIR is used by osl_getTempDirURL()
- putenv("TMPDIR=" + getCacheDir().getAbsolutePath());
-
// argv[0] will be replaced by android_main() in lo-bootstrap.c by the
// pathname of the mainLibrary.
String[] newargv = new String[argv.length + 1];