forked from pool/gnome-software
41 lines
1.1 KiB
Diff
41 lines
1.1 KiB
Diff
|
Index: gnome-software-3.14.0/src/gs-folders.c
|
||
|
===================================================================
|
||
|
--- gnome-software-3.14.0.orig/src/gs-folders.c
|
||
|
+++ gnome-software-3.14.0/src/gs-folders.c
|
||
|
@@ -559,6 +559,7 @@ gs_folders_convert (void)
|
||
|
const gchar * const children[] = {
|
||
|
"Utilities",
|
||
|
"Sundry",
|
||
|
+ "YaST",
|
||
|
NULL
|
||
|
};
|
||
|
const gchar * const utilities_categories[] = {
|
||
|
@@ -627,6 +628,11 @@ gs_folders_convert (void)
|
||
|
"vino-preferences.desktop",
|
||
|
NULL
|
||
|
};
|
||
|
+ const gchar * const yast_categories[] = {
|
||
|
+ "X-SuSE-YaST",
|
||
|
+ NULL
|
||
|
+ };
|
||
|
+
|
||
|
gchar *path;
|
||
|
gchar *child_path;
|
||
|
GSettings *child;
|
||
|
@@ -653,6 +659,15 @@ gs_folders_convert (void)
|
||
|
|
||
|
g_object_unref (child);
|
||
|
g_free (child_path);
|
||
|
+
|
||
|
+ child_path = g_strconcat (path, "folders/YaST/", NULL);
|
||
|
+ child = g_settings_new_with_path (APP_FOLDER_CHILD_SCHEMA, child_path);
|
||
|
+ g_settings_set_string (child, "name", "suse-yast.directory");
|
||
|
+ g_settings_set_boolean (child, "translate", TRUE);
|
||
|
+ g_settings_set_strv (child, "categories", yast_categories);
|
||
|
+
|
||
|
+ g_object_unref (child);
|
||
|
+ g_free (child_path);
|
||
|
|
||
|
}
|
||
|
|