Browse Source

Use TERMUX_PREFIX variable instead of hard coding

android-5
Kevin Cotugno 6 years ago
committed by Fredrik Fornwall
parent
commit
8c97913cf2
  1. 2
      packages/rust/os-tmpdir.patch

2
packages/rust/os-tmpdir.patch

@ -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")
}

Loading…
Cancel
Save