termux-packages/x11-packages/shared-mime-info/update-mime-database.c.patch

12 lines
408 B
Diff

--- shared-mime-info/src/update-mime-database.c
+++ shared-mime-info/src/update-mime-database.c
@@ -2168,7 +2168,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++)