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 | |
parent | putenv() does seem to be process-wide (diff) | |
download | core-73a47ed3750bde3de1f8abcf0005ee068b1ed96e.tar.gz core-73a47ed3750bde3de1f8abcf0005ee068b1ed96e.zip |
Set TMPDIR for osl_getTempDirURL()
Diffstat (limited to 'android')
-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]; |