mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +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;
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user