[glib] gio/tests: Find "true" in PATH opposed to hardcoding the location
- From: Mike Ruprecht <mruprecht src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio/tests: Find "true" in PATH opposed to hardcoding the location
- Date: Thu, 25 Apr 2013 12:51:02 +0000 (UTC)
commit c027e88a30fc3c332c8955fdeef1bf5e15cc63fc
Author: Mike Ruprecht <mike ruprecht collabora co uk>
Date: Thu Apr 25 02:24:53 2013 -0500
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c
index 05dda7c..bcda49f 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]