Accepting request 253937 from home:badshah400:branches:GNOME:Factory
Add patch to set-up a YaST app-folder by default (patched build tested to be successful by zaitor) OBS-URL: https://build.opensuse.org/request/show/253937 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=30
This commit is contained in:
parent
1233ee6ea3
commit
4c05666f30
40
gnome-software-add-default-yast-appfolder.patch
Normal file
40
gnome-software-add-default-yast-appfolder.patch
Normal file
@ -0,0 +1,40 @@
|
||||
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);
|
||||
|
||||
}
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 4 18:10:23 UTC 2014 - badshah400@gmail.com
|
||||
|
||||
- Add gnome-software-add-default-yast-appfolder.patch to add a
|
||||
YaST app-folder by default, in addition to existing app-folders
|
||||
Sundry and Utilities; fixes boo#897713.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 4 14:16:53 UTC 2014 - dimstar@opensuse.org
|
||||
|
||||
|
@ -28,6 +28,8 @@ Source: http://download.gnome.org/sources/gnome-software/3.14/%{name}-%{
|
||||
Source1: InstallAppdata.sh
|
||||
# PATCH-FEATURE-OPENSUSE gnome-software-PK-updates.patch dimstar@opensuse.org -- Switch to PackageKit Update provider instead of systemd offline updates.
|
||||
Patch0: gnome-software-PK-updates.patch
|
||||
# PATCH-FEATURE-OPENSUSE gnome-software-add-default-yast-appfolder.patch boo#897713 badshah400@gmail.com -- Adds a YaST app-folder by default, in addition to existing app-folders Sundry and Utilities
|
||||
Patch1: gnome-software-add-default-yast-appfolder.patch
|
||||
BuildRequires: intltool >= 0.35.0
|
||||
BuildRequires: suse-xsl-stylesheets
|
||||
BuildRequires: update-desktop-files
|
||||
@ -68,6 +70,7 @@ At this moment, gnome-software is the only known implementation making use of it
|
||||
%setup -q
|
||||
# Disables - let's try the systemd offline updater
|
||||
#patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
|
Loading…
x
Reference in New Issue
Block a user