[gnome-software] trivial: Set a fake one-line summary for manually added web-apps



commit 0652e901ef580b215d510c6696973a685bcf6b0b
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jun 27 14:50:46 2016 +0100

    trivial: Set a fake one-line summary for manually added web-apps
    
    It kinda sucks we don't always get a Comment= from epiphany...

 src/plugins/gs-plugin-epiphany.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-epiphany.c b/src/plugins/gs-plugin-epiphany.c
index 8238490..2787baa 100644
--- a/src/plugins/gs-plugin-epiphany.c
+++ b/src/plugins/gs-plugin-epiphany.c
@@ -270,6 +270,11 @@ gs_plugin_refine_app (GsPlugin *plugin,
                             gs_app_get_id (app));
                return FALSE;
        }
+       if (gs_app_get_summary (app) == NULL) {
+               g_debug ("faking summary for %s", gs_app_get_id (app));
+               gs_app_set_summary (app, GS_APP_QUALITY_LOWEST,
+                                   "Web Application");
+       }
        hash = g_compute_checksum_for_string (G_CHECKSUM_SHA1, name, -1);
        id_nonfull = _gs_app_get_id_nonfull (app);
        fn = g_strdup_printf ("%s/epiphany/app-%s-%s/%s-%s.desktop",


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