[gnome-software/wip/ubuntu-3-22: 16/17] Use snap name field for app name.

commit b142e3f30b9ac576d2e1c1bce10dca5f99e3d77c
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri May 5 09:29:26 2017 +1200

    Use snap name field for app name.
    This is not an appropriate field for display, since it's more of a package
    name / key than a human readable name. There is a title field that is set
    in the store, and should be exposed so GNOME Software can use this.

 src/plugins/gs-plugin-snap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index 3cf1cc5..1f3836d 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -126,7 +126,7 @@ refine_app (GsPlugin *plugin, GsApp *app, JsonObject *package, gboolean from_sea
                gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
        gs_app_set_name (app, GS_APP_QUALITY_HIGHEST,
-                        json_object_get_string_member (package, "summary"));
+                        json_object_get_string_member (package, "name"));
        gs_app_set_summary (app, GS_APP_QUALITY_HIGHEST,
                            json_object_get_string_member (package, "summary"));
        gs_app_set_description (app, GS_APP_QUALITY_HIGHEST,

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