2021-12-11 11:24:41 +01:00
|
|
|
--- ./glib/gutils.c.orig 2021-12-11 13:35:15.354088542 +0530
|
|
|
|
+++ ./glib/gutils.c 2021-12-11 13:36:59.724088502 +0530
|
|
|
|
@@ -369,7 +369,7 @@
|
2019-05-11 23:27:58 +02:00
|
|
|
* what to search if PATH is unset. POSIX may, dunno.
|
|
|
|
*/
|
|
|
|
|
|
|
|
- path = "/bin:/usr/bin:.";
|
2020-07-09 00:12:39 +02:00
|
|
|
+ path = "@TERMUX_PREFIX@/bin:.";
|
2019-05-11 23:27:58 +02:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
n = GetModuleFileNameW (NULL, wfilename, MAXPATHLEN);
|
2021-12-11 11:24:41 +01:00
|
|
|
@@ -949,7 +949,7 @@
|
2019-05-11 23:27:58 +02:00
|
|
|
if (tmp == NULL || *tmp == '\0')
|
|
|
|
{
|
|
|
|
g_free (tmp);
|
|
|
|
- tmp = g_strdup ("/tmp");
|
|
|
|
+ tmp = g_strdup ("@TERMUX_PREFIX@/tmp");
|
|
|
|
}
|
|
|
|
#endif /* !G_OS_WIN32 */
|
|
|
|
|
2021-12-11 11:24:41 +01:00
|
|
|
@@ -1526,7 +1526,7 @@
|
|
|
|
else
|
|
|
|
return NULL;
|
|
|
|
#elif defined (G_OS_UNIX)
|
|
|
|
- const gchar * const os_release_files[] = { "/etc/os-release", "/usr/lib/os-release" };
|
|
|
|
+ const gchar * const os_release_files[] = { "@TERMUX_PREFIX@/etc/os-release", "@TERMUX_PREFIX@/lib/os-release" };
|
|
|
|
gsize i;
|
|
|
|
gchar *buffer = NULL;
|
|
|
|
gchar *result = NULL;
|
|
|
|
@@ -2465,7 +2465,7 @@
|
2019-05-11 23:27:58 +02:00
|
|
|
*/
|
|
|
|
#ifndef G_OS_WIN32
|
|
|
|
if (!data_dirs || !data_dirs[0])
|
|
|
|
- data_dirs = "/usr/local/share/:/usr/share/";
|
2021-12-11 11:24:41 +01:00
|
|
|
+ data_dirs = "@TERMUX_PREFIX@/local/share/:@TERMUX_PREFIX@/share/";
|
2019-05-11 23:27:58 +02:00
|
|
|
|
|
|
|
data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
|
|
|
|
#else
|