diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-01-31 14:06:37 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-01-31 14:06:37 +0200 |
commit | 73a47ed3750bde3de1f8abcf0005ee068b1ed96e (patch) | |
tree | 899c51af1f30fb56eb8499be0d768d9cb2de8bf7 /android/Bootstrap/src | |
parent | 427edef2c780b40513af0491d5cbe865233d0650 (diff) |
Set TMPDIR for osl_getTempDirURL()
Diffstat (limited to 'android/Bootstrap/src')
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/android/Bootstrap.java | 3 |
1 files changed, 3 insertions, 0 deletions
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]; |