Kaydet (Commit) 73a47ed3 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Set TMPDIR for osl_getTempDirURL()

üst 427edef2
...@@ -143,6 +143,9 @@ public class Bootstrap extends NativeActivity ...@@ -143,6 +143,9 @@ public class Bootstrap extends NativeActivity
argv = Arrays.copyOfRange(argv, 1, argv.length-1); 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 // argv[0] will be replaced by android_main() in lo-bootstrap.c by the
// pathname of the mainLibrary. // pathname of the mainLibrary.
String[] newargv = new String[argv.length + 1]; String[] newargv = new String[argv.length + 1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment