Set TMPDIR also in non-NativeActivity apps
This commit is contained in:
@@ -139,6 +139,9 @@ public class Bootstrap extends NativeActivity
|
|||||||
}
|
}
|
||||||
if (i != null)
|
if (i != null)
|
||||||
putenv("FONTCONFIG_FILE=" + dataDir + "/etc/fonts/fonts.conf");
|
putenv("FONTCONFIG_FILE=" + dataDir + "/etc/fonts/fonts.conf");
|
||||||
|
|
||||||
|
// TMPDIR is used by osl_getTempDirURL()
|
||||||
|
putenv("TMPDIR=" + activity.getCacheDir().getAbsolutePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -186,9 +189,6 @@ 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];
|
||||||
|
Reference in New Issue
Block a user