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

13 lines
586 B
Diff

diff -uNr shared-mime-info-1.9/update-mime-database.c shared-mime-info-1.9.mod/update-mime-database.c
--- shared-mime-info-1.9/update-mime-database.c 2017-02-11 19:26:13.000000000 +0200
+++ shared-mime-info-1.9.mod/update-mime-database.c 2018-06-23 14:06:11.713617726 +0300
@@ -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++)