Use TERMUX_PREFIX variable instead of hard coding

This commit is contained in:
Kevin Cotugno 2018-10-22 20:21:28 -07:00 committed by Fredrik Fornwall
parent 8f333f59f9
commit 5453987671

View File

@ -5,7 +5,7 @@
::env::var_os("TMPDIR").map(PathBuf::from).unwrap_or_else(|| {
if cfg!(target_os = "android") {
- PathBuf::from("/data/local/tmp")
+ PathBuf::from("/data/data/com.termux/files/usr/tmp")
+ PathBuf::from("@TERMUX_PREFIX@/tmp")
} else {
PathBuf::from("/tmp")
}