mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
gio/tests: Find "true" in PATH opposed to hardcoding the location
Not all systems have /usr/bin/true. Some have it in /bin/true. Instead of trying to guess a hardcoded path to find it, let g_app_info_create_from_commandline() internally search PATH to find the program. https://bugzilla.gnome.org/show_bug.cgi?id=698655
This commit is contained in:
parent
8a6ae995ee
commit
c027e88a30
@ -34,7 +34,7 @@ create_app_info (const char *name)
|
|||||||
GAppInfo *info;
|
GAppInfo *info;
|
||||||
|
|
||||||
error = NULL;
|
error = NULL;
|
||||||
info = g_app_info_create_from_commandline ("/usr/bin/true blah",
|
info = g_app_info_create_from_commandline ("true blah",
|
||||||
name,
|
name,
|
||||||
G_APP_INFO_CREATE_NONE,
|
G_APP_INFO_CREATE_NONE,
|
||||||
&error);
|
&error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user