termux-packages/packages/glib/glib-gutils.c.patch

40 lines
1.1 KiB
Diff

diff -u -r ../glib-2.60.2/glib/gutils.c ./glib/gutils.c
--- ../glib-2.60.2/glib/gutils.c 2019-05-03 13:43:28.000000000 +0000
+++ ./glib/gutils.c 2019-05-11 19:59:12.830415366 +0000
@@ -378,7 +378,7 @@
* what to search if PATH is unset. POSIX may, dunno.
*/
- path = "/bin:/usr/bin:.";
+ path = "@TERMUX_PREFIX@/bin:.";
}
#else
n = GetModuleFileNameW (NULL, wfilename, MAXPATHLEN);
@@ -958,7 +958,7 @@
if (tmp == NULL || *tmp == '\0')
{
g_free (tmp);
- tmp = g_strdup ("/tmp");
+ tmp = g_strdup ("@TERMUX_PREFIX@/tmp");
}
#endif /* !G_OS_WIN32 */
@@ -2080,7 +2080,7 @@
*/
#ifndef G_OS_WIN32
if (!data_dirs || !data_dirs[0])
- data_dirs = "/usr/local/share/:/usr/share/";
+ data_dirs = "@TERMUX_PREFIX@/share/";
data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
#else
@@ -2174,7 +2174,7 @@
}
#else
if (!conf_dirs || !conf_dirs[0])
- conf_dirs = "/etc/xdg";
+ conf_dirs = "@TERMUX_PREFIX@/etc/xdg";
conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
#endif