--- a/gplugin/gplugin-query.c Mon May 18 20:53:21 2015 -0500
+++ b/gplugin/gplugin-query.c Tue May 19 00:21:46 2015 -0500
@@ -29,7 +29,8 @@
*****************************************************************************/
static gint verbosity = 0;
static gboolean show_internal = FALSE;
-static gboolean version_only = FALSE;
+static gboolean output_paths = FALSE; +static gboolean exit_early = FALSE; /******************************************************************************
@@ -75,7 +76,18 @@
printf("gplugin-query %s\n", GPLUGIN_VERSION);
+list_cb(GPLUGIN_UNUSED const gchar *n, + GPLUGIN_UNUSED const gchar *v, + GPLUGIN_UNUSED gpointer d, + GPLUGIN_UNUSED GError **e) @@ -252,6 +264,10 @@
version_cb, N_("Display the version and exit"),
+ "list", 'L', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, + list_cb, N_("Display all search paths and exit"), NULL, 0, 0, 0, NULL, NULL, NULL,
@@ -286,7 +302,19 @@
+ for(path = gplugin_manager_get_paths(); path; path = path->next) { + printf("%s\n", (gchar *)path->data);