glib: remove /bin/applets from PATH

This commit is contained in:
Leonid Pliushch 2020-07-09 01:12:39 +03:00
parent 5f35941f36
commit b889c4bc40
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ diff -u -r ../glib-2.58.1/glib/gspawn.c ./glib/gspawn.c
*/ */
- path = "/bin:/usr/bin:."; - path = "/bin:/usr/bin:.";
+ path = "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets:."; + path = "@TERMUX_PREFIX@/bin:.";
} }
len = strlen (file) + 1; len = strlen (file) + 1;

View File

@ -6,7 +6,7 @@ diff -u -r ../glib-2.60.2/glib/gutils.c ./glib/gutils.c
*/ */
- path = "/bin:/usr/bin:."; - path = "/bin:/usr/bin:.";
+ path = "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets:."; + path = "@TERMUX_PREFIX@/bin:.";
} }
#else #else
n = GetModuleFileNameW (NULL, wfilename, MAXPATHLEN); n = GetModuleFileNameW (NULL, wfilename, MAXPATHLEN);