From 2971e35fe6182643925ab930b2de6479e0715211 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 12 Jan 2009 21:31:45 +0000 Subject: [PATCH] Bug 567212: Exit after dumping The intended use of g_irepository_get_option_group is that your application more transparently supports --introspection-dump; we should exit so that your app doesn't continue trying to launch. svn path=/trunk/; revision=1023 --- girepository.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/girepository.c b/girepository.c index 56c1e9952..540623ae4 100644 --- a/girepository.c +++ b/girepository.c @@ -1174,7 +1174,8 @@ g_irepository_introspect_cb (const char *option_name, gpointer data, GError **error) { - return g_irepository_dump (value, error); + gboolean ret = g_irepository_dump (value, error); + exit (ret ? 0 : 1); } static const GOptionEntry introspection_args[] = {