From c027e88a30fc3c332c8955fdeef1bf5e15cc63fc Mon Sep 17 00:00:00 2001 From: Mike Ruprecht Date: Thu, 25 Apr 2013 02:24:53 -0500 Subject: [PATCH] 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 --- gio/tests/desktop-app-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c index 05dda7c89..bcda49f6e 100644 --- a/gio/tests/desktop-app-info.c +++ b/gio/tests/desktop-app-info.c @@ -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);