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:
Mike Ruprecht 2013-04-25 02:24:53 -05:00
parent 8a6ae995ee
commit c027e88a30

View File

@ -34,7 +34,7 @@ create_app_info (const char *name)
GAppInfo *info;
error = NULL;
info = g_app_info_create_from_commandline ("/usr/bin/true blah",
info = g_app_info_create_from_commandline ("true blah",
name,
G_APP_INFO_CREATE_NONE,
&error);