--- a/fontforgeexe/lookupui.c
+++ b/fontforgeexe/lookupui.c
@@ -4374,7 +4374,7 @@
 	    oldsfd = SFDCreateUndoForLookup( sf, lookup_type );
 
 	    if( DEBUG && oldsfd )
-		GFileWriteAll( "/tmp/old-lookup-table.sfd", oldsfd );
+		GFileWriteAll( "@TERMUX_PREFIX@/tmp/old-lookup-table.sfd", oldsfd );
 	}
 
 	/* Then mark all the current things as unused */
