+++ ./src/update-mime-database.cpp
@@ -2159,7 +2159,7 @@
 
 	env = getenv("XDG_DATA_DIRS");
 	if (!env)
-		env = "/usr/local/share/" PATH_SEPARATOR "/usr/share/";
+		env = "@TERMUX_PREFIX@/share/" PATH_SEPARATOR "@TERMUX_PREFIX@/local/share/";
 	dirs = g_strsplit(env, PATH_SEPARATOR, 0);
 	g_return_if_fail(dirs != NULL);
 	for (n = 0; dirs[n]; n++)
