[gnome-software/gnome-3-30] snap: Update Snap store category mapping



commit 8460708c981198fce8250017a06104b1364ff91d
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Jul 17 14:07:04 2019 +1200

    snap: Update Snap store category mapping
    
    The store changed the names of some sections, update the mapping to the XDG
    categories.

 plugins/snap/gs-plugin-snap.c | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 8658aaf8..e42113f5 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -500,20 +500,35 @@ gs_plugin_add_category_apps (GsPlugin *plugin,
                g_string_prepend (id, gs_category_get_id (c));
        }
 
+       /*
+        * Unused categories:
+        *
+        * health-and-fitness
+        * personalisation
+        * devices-and-iot
+        * security
+        * server-and-cloud
+        * entertainment
+        */
+
        if (strcmp (id->str, "games/featured") == 0)
                sections = "games";
        else if (strcmp (id->str, "audio-video/featured") == 0)
-               sections = "music;video";
+               sections = "music-and-audio";
        else if (strcmp (id->str, "graphics/featured") == 0)
-               sections = "graphics";
+               sections = "photo-and-video;art-and-design";
        else if (strcmp (id->str, "communication/featured") == 0)
-               sections = "social-networking";
+               sections = "social;news-and-weather";
        else if (strcmp (id->str, "productivity/featured") == 0)
                sections = "productivity;finance";
        else if (strcmp (id->str, "developer-tools/featured") == 0)
-               sections = "developers";
+               sections = "development";
        else if (strcmp (id->str, "utilities/featured") == 0)
                sections = "utilities";
+       else if (strcmp (id->str, "education-science/featured") == 0)
+               sections = "education;science";
+       else if (strcmp (id->str, "reference/featured") == 0)
+               sections = "books-and-reference";
 
        if (sections != NULL) {
                g_auto(GStrv) tokens = NULL;


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