From 73a47ed3750bde3de1f8abcf0005ee068b1ed96e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 31 Jan 2012 14:06:37 +0200 Subject: Set TMPDIR for osl_getTempDirURL() --- android/Bootstrap/src/org/libreoffice/android/Bootstrap.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java index a51315bc4abd..ac5d027cb52a 100644 --- a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java +++ b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java @@ -143,6 +143,9 @@ 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]; -- cgit