[gnome-software] Prepopulate Utilities



commit 065c048e9050fda71cb71a5e9cbd1d3177a56d8f
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 30 22:02:52 2014 -0500

    Prepopulate Utilities
    
    It turns out that Utilities is in the same boat as Sundry:
    it was all hardcoded in the menu file. So move that list
    of apps here too.

 src/gs-folders.c |   30 ++++++++++++++++++++++++++----
 1 files changed, 26 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-folders.c b/src/gs-folders.c
index e26ac76..6827462 100644
--- a/src/gs-folders.c
+++ b/src/gs-folders.c
@@ -564,8 +564,29 @@ gs_folders_convert (void)
                        "Sundry",
                        NULL
                };
-               const gchar * const utility_categories[] = {
-                       "Utilities",
+               const gchar * const utilities_categories[] = {
+                       "X-GNOME-Utilities",
+                       NULL
+               };
+               const gchar * const utilities_apps[] = {
+                       "baobab.desktop",
+                       "deja-dup-preferences.desktop",
+                       "eog.desktop",
+                       "evince.desktop",
+                       "file-roller.desktop",
+                       "gcalctool.desktop",
+                       "gnome-dictionary.desktop",
+                       "gnome-disks.desktop",
+                       "gnome-font-viewer.desktop",
+                       "gnome-screenshot.desktop",
+                       "gnome-system-log.desktop",
+                       "gnome-system-monitor.desktop",
+                       "gnome-terminal.desktop",
+                       "gnome-tweak-tool.desktop",
+                       "gucharmap.desktop",
+                       "seahorse.desktop",
+                       "vinagre.desktop",
+                       "yelp.desktop",
                        NULL
                };
                const gchar * const sundry_categories[] = {
@@ -618,9 +639,10 @@ gs_folders_convert (void)
 
                 child_path = g_strconcat (path, "folders/Utilities/", NULL);
                 child = g_settings_new_with_path (APP_FOLDER_CHILD_SCHEMA, child_path);
-               g_settings_set_string (child, "name", "Utilities.directory");
+               g_settings_set_string (child, "name", "X-GNOME-Utilities.directory");
                g_settings_set_boolean (child, "translate", TRUE);
-               g_settings_set_strv (child, "categories", utility_categories);
+               g_settings_set_strv (child, "categories", utilities_categories);
+               g_settings_set_strv (child, "apps", utilities_apps);
 
                g_object_unref (child);
                g_free (child_path);


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