--- a/Source/NSPathUtilities.m
+++ b/Source/NSPathUtilities.m
@@ -2004,7 +2004,7 @@
 	       */
 	      baseTempDirName = @"/var/tmp";
 #else
-	      baseTempDirName = @"/tmp";
+	      baseTempDirName = @"@TERMUX_PREFIX@/tmp";
 #endif
 	    }
 	}
