[gnome-software] trivial: Never show CLI applications in the installed list



commit fb62fe92062fb48f40649059c6a34796ef680bab
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jan 16 15:18:52 2017 +0000

    trivial: Never show CLI applications in the installed list

 src/gs-plugin-loader.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 472ceaa..2f7622a 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -1008,6 +1008,13 @@ gs_plugin_loader_app_is_valid (GsApp *app, gpointer user_data)
                return FALSE;
        }
 
+       /* never show CLI apps */
+       if (gs_app_get_kind (app) == AS_APP_KIND_CONSOLE) {
+               g_debug ("app invalid as console %s",
+                        gs_plugin_loader_get_app_str (app));
+               return FALSE;
+       }
+
        /* don't show unknown state */
        if (gs_app_get_state (app) == AS_APP_STATE_UNKNOWN) {
                g_debug ("app invalid as job unknown %s",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]