Accepting request 450220 from GNOME:Factory
1 OBS-URL: https://build.opensuse.org/request/show/450220 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-settings-daemon?expand=0&rev=129
This commit is contained in:
commit
e174cc3958
@ -38,11 +38,11 @@ Subject: [PATCH] revert upstream commits to bring back the updates plugin
|
|||||||
create mode 100644 plugins/updates/updates-design.svg
|
create mode 100644 plugins/updates/updates-design.svg
|
||||||
create mode 100644 plugins/updates/updates.gnome-settings-plugin.in
|
create mode 100644 plugins/updates/updates.gnome-settings-plugin.in
|
||||||
|
|
||||||
Index: gnome-settings-daemon-3.20.1/configure.ac
|
Index: gnome-settings-daemon-3.22.1/configure.ac
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gnome-settings-daemon-3.20.1.orig/configure.ac
|
--- gnome-settings-daemon-3.22.1.orig/configure.ac
|
||||||
+++ gnome-settings-daemon-3.20.1/configure.ac
|
+++ gnome-settings-daemon-3.22.1/configure.ac
|
||||||
@@ -297,6 +297,33 @@ esac
|
@@ -288,6 +288,33 @@ esac
|
||||||
AM_CONDITIONAL(HAVE_WACOM, test x$have_wacom = xyes)
|
AM_CONDITIONAL(HAVE_WACOM, test x$have_wacom = xyes)
|
||||||
|
|
||||||
dnl ==============================================
|
dnl ==============================================
|
||||||
@ -76,7 +76,7 @@ Index: gnome-settings-daemon-3.20.1/configure.ac
|
|||||||
dnl smartcard section
|
dnl smartcard section
|
||||||
dnl ==============================================
|
dnl ==============================================
|
||||||
have_smartcard_support=false
|
have_smartcard_support=false
|
||||||
@@ -542,6 +569,7 @@ plugins/screensaver-proxy/Makefile
|
@@ -533,6 +560,7 @@ plugins/screensaver-proxy/Makefile
|
||||||
plugins/sharing/Makefile
|
plugins/sharing/Makefile
|
||||||
plugins/smartcard/Makefile
|
plugins/smartcard/Makefile
|
||||||
plugins/sound/Makefile
|
plugins/sound/Makefile
|
||||||
@ -84,7 +84,7 @@ Index: gnome-settings-daemon-3.20.1/configure.ac
|
|||||||
plugins/wacom/Makefile
|
plugins/wacom/Makefile
|
||||||
plugins/xrandr/Makefile
|
plugins/xrandr/Makefile
|
||||||
plugins/xsettings/Makefile
|
plugins/xsettings/Makefile
|
||||||
@@ -558,6 +586,7 @@ data/org.gnome.settings-daemon.plugins.m
|
@@ -549,6 +577,7 @@ data/org.gnome.settings-daemon.plugins.m
|
||||||
data/org.gnome.settings-daemon.peripherals.gschema.xml.in
|
data/org.gnome.settings-daemon.peripherals.gschema.xml.in
|
||||||
data/org.gnome.settings-daemon.plugins.housekeeping.gschema.xml.in
|
data/org.gnome.settings-daemon.plugins.housekeeping.gschema.xml.in
|
||||||
data/org.gnome.settings-daemon.plugins.orientation.gschema.xml.in
|
data/org.gnome.settings-daemon.plugins.orientation.gschema.xml.in
|
||||||
@ -92,18 +92,18 @@ Index: gnome-settings-daemon-3.20.1/configure.ac
|
|||||||
data/org.gnome.settings-daemon.plugins.sharing.gschema.xml.in
|
data/org.gnome.settings-daemon.plugins.sharing.gschema.xml.in
|
||||||
data/org.gnome.settings-daemon.plugins.xrandr.gschema.xml.in
|
data/org.gnome.settings-daemon.plugins.xrandr.gschema.xml.in
|
||||||
data/org.gnome.settings-daemon.peripherals.wacom.gschema.xml.in
|
data/org.gnome.settings-daemon.peripherals.wacom.gschema.xml.in
|
||||||
@@ -593,6 +622,7 @@ echo "
|
@@ -583,6 +612,7 @@ echo "
|
||||||
LCMS DICT support: ${have_new_lcms}
|
|
||||||
NetworkManager support: ${enable_network_manager}
|
NetworkManager support: ${enable_network_manager}
|
||||||
Libnotify support: ${have_libnotify}
|
Libnotify support: ${have_libnotify}
|
||||||
+ PackageKit support: ${have_packagekit}
|
+ PackageKit support: ${have_packagekit}
|
||||||
Smartcard support: ${have_smartcard_support}
|
Smartcard support: ${have_smartcard_support}
|
||||||
Cups support: ${enable_cups}
|
Cups support: ${enable_cups}
|
||||||
Wacom support: ${have_wacom}
|
Wacom support: ${have_wacom}
|
||||||
Index: gnome-settings-daemon-3.20.1/data/Makefile.am
|
Index: gnome-settings-daemon-3.22.1/data/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gnome-settings-daemon-3.20.1.orig/data/Makefile.am
|
--- gnome-settings-daemon-3.22.1.orig/data/Makefile.am
|
||||||
+++ gnome-settings-daemon-3.20.1/data/Makefile.am
|
+++ gnome-settings-daemon-3.22.1/data/Makefile.am
|
||||||
@@ -19,6 +19,7 @@ gsettings_SCHEMAS = \
|
@@ -19,6 +19,7 @@ gsettings_SCHEMAS = \
|
||||||
org.gnome.settings-daemon.plugins.housekeeping.gschema.xml \
|
org.gnome.settings-daemon.plugins.housekeeping.gschema.xml \
|
||||||
org.gnome.settings-daemon.plugins.print-notifications.gschema.xml \
|
org.gnome.settings-daemon.plugins.print-notifications.gschema.xml \
|
||||||
@ -112,10 +112,10 @@ Index: gnome-settings-daemon-3.20.1/data/Makefile.am
|
|||||||
org.gnome.settings-daemon.plugins.orientation.gschema.xml \
|
org.gnome.settings-daemon.plugins.orientation.gschema.xml \
|
||||||
org.gnome.settings-daemon.peripherals.wacom.gschema.xml
|
org.gnome.settings-daemon.peripherals.wacom.gschema.xml
|
||||||
|
|
||||||
Index: gnome-settings-daemon-3.20.1/data/org.gnome.settings-daemon.plugins.updates.gschema.xml.in.in
|
Index: gnome-settings-daemon-3.22.1/data/org.gnome.settings-daemon.plugins.updates.gschema.xml.in.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/data/org.gnome.settings-daemon.plugins.updates.gschema.xml.in.in
|
+++ gnome-settings-daemon-3.22.1/data/org.gnome.settings-daemon.plugins.updates.gschema.xml.in.in
|
||||||
@@ -0,0 +1,79 @@
|
@@ -0,0 +1,79 @@
|
||||||
+<schemalist>
|
+<schemalist>
|
||||||
+ <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.plugins.updates" path="/org/gnome/settings-daemon/plugins/updates/">
|
+ <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.plugins.updates" path="/org/gnome/settings-daemon/plugins/updates/">
|
||||||
@ -196,10 +196,10 @@ Index: gnome-settings-daemon-3.20.1/data/org.gnome.settings-daemon.plugins.updat
|
|||||||
+ </key>
|
+ </key>
|
||||||
+ </schema>
|
+ </schema>
|
||||||
+</schemalist>
|
+</schemalist>
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/Makefile.am
|
Index: gnome-settings-daemon-3.22.1/plugins/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gnome-settings-daemon-3.20.1.orig/plugins/Makefile.am
|
--- gnome-settings-daemon-3.22.1.orig/plugins/Makefile.am
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/Makefile.am
|
+++ gnome-settings-daemon-3.22.1/plugins/Makefile.am
|
||||||
@@ -22,6 +22,12 @@ enabled_plugins = \
|
@@ -22,6 +22,12 @@ enabled_plugins = \
|
||||||
|
|
||||||
disabled_plugins = $(NULL)
|
disabled_plugins = $(NULL)
|
||||||
@ -213,11 +213,11 @@ Index: gnome-settings-daemon-3.20.1/plugins/Makefile.am
|
|||||||
if SMARTCARD_SUPPORT
|
if SMARTCARD_SUPPORT
|
||||||
enabled_plugins += smartcard
|
enabled_plugins += smartcard
|
||||||
else
|
else
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/Makefile.am
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/Makefile.am
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/Makefile.am
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/Makefile.am
|
||||||
@@ -0,0 +1,93 @@
|
@@ -0,0 +1,98 @@
|
||||||
+plugin_name = updates
|
+plugin_name = updates
|
||||||
+
|
+
|
||||||
+plugin_LTLIBRARIES = \
|
+plugin_LTLIBRARIES = \
|
||||||
@ -264,7 +264,12 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/Makefile.am
|
|||||||
+
|
+
|
||||||
+plugin_DATA = $(plugin_in_files:.gnome-settings-plugin.in=.gnome-settings-plugin)
|
+plugin_DATA = $(plugin_in_files:.gnome-settings-plugin.in=.gnome-settings-plugin)
|
||||||
+
|
+
|
||||||
+libexec_PROGRAMS = gsd-test-updates
|
+libexec_PROGRAMS = gsd-test-updates pk-clear-offline-update
|
||||||
|
+
|
||||||
|
+pk_clear_offline_update_SOURCES = pk-offline-clear-update.c \
|
||||||
|
+ gsd-updates-common.h
|
||||||
|
+
|
||||||
|
+pk_clear_offline_update_CFLAGS = $(SETTINGS_PLUGIN_CFLAGS) $(PLUGIN_CFLAGS)
|
||||||
+
|
+
|
||||||
+gsd_test_updates_SOURCES = \
|
+gsd_test_updates_SOURCES = \
|
||||||
+ test-updates.c \
|
+ test-updates.c \
|
||||||
@ -311,11 +316,11 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/Makefile.am
|
|||||||
+ $(plugin_DATA)
|
+ $(plugin_DATA)
|
||||||
+
|
+
|
||||||
+@GSD_INTLTOOL_PLUGIN_RULE@
|
+@GSD_INTLTOOL_PLUGIN_RULE@
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-common.h
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-common.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-common.h
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-common.h
|
||||||
@@ -0,0 +1,44 @@
|
@@ -0,0 +1,46 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
+ * Copyright (C) 2011 Richard Hughes <richard@hughsie.com>
|
+ * Copyright (C) 2011 Richard Hughes <richard@hughsie.com>
|
||||||
@ -339,6 +344,7 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-common.h
|
|||||||
+
|
+
|
||||||
+#ifndef __GSD_UPDATES_COMMON_H
|
+#ifndef __GSD_UPDATES_COMMON_H
|
||||||
+#define __GSD_UPDATES_COMMON_H
|
+#define __GSD_UPDATES_COMMON_H
|
||||||
|
+#include <glib.h>
|
||||||
+
|
+
|
||||||
+G_BEGIN_DECLS
|
+G_BEGIN_DECLS
|
||||||
+
|
+
|
||||||
@ -357,13 +363,14 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-common.h
|
|||||||
+#define GSD_SETTINGS_UPDATE_BATTERY "update-battery"
|
+#define GSD_SETTINGS_UPDATE_BATTERY "update-battery"
|
||||||
+#define GSD_SETTINGS_AUTO_DOWNLOAD_UPDATES "auto-download-updates"
|
+#define GSD_SETTINGS_AUTO_DOWNLOAD_UPDATES "auto-download-updates"
|
||||||
+
|
+
|
||||||
|
+#define PK_OFFLINE_UPDATE_RESULTS_FILENAME "/var/lib/PackageKit/offline-update-competed"
|
||||||
+G_END_DECLS
|
+G_END_DECLS
|
||||||
+
|
+
|
||||||
+#endif /* __GSD_UPDATES_COMMON_H */
|
+#endif /* __GSD_UPDATES_COMMON_H */
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-firmware.c
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-firmware.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-firmware.c
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-firmware.c
|
||||||
@@ -0,0 +1,1040 @@
|
@@ -0,0 +1,1040 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
@ -1405,10 +1412,10 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-firmware.c
|
|||||||
+ firmware = g_object_new (GSD_UPDATES_TYPE_FIRMWARE, NULL);
|
+ firmware = g_object_new (GSD_UPDATES_TYPE_FIRMWARE, NULL);
|
||||||
+ return GSD_UPDATES_FIRMWARE (firmware);
|
+ return GSD_UPDATES_FIRMWARE (firmware);
|
||||||
+}
|
+}
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-firmware.h
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-firmware.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-firmware.h
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-firmware.h
|
||||||
@@ -0,0 +1,52 @@
|
@@ -0,0 +1,52 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
@ -1462,11 +1469,11 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-firmware.h
|
|||||||
+G_END_DECLS
|
+G_END_DECLS
|
||||||
+
|
+
|
||||||
+#endif /* __GSD_UPDATES_FIRMWARE_H */
|
+#endif /* __GSD_UPDATES_FIRMWARE_H */
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-manager.c
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-manager.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-manager.c
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-manager.c
|
||||||
@@ -0,0 +1,1510 @@
|
@@ -0,0 +1,1509 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
+ * Copyright (C) 2011 Richard Hughes <richard@hughsie.com>
|
+ * Copyright (C) 2011 Richard Hughes <richard@hughsie.com>
|
||||||
@ -2617,7 +2624,6 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-manager.c
|
|||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+#define PK_OFFLINE_UPDATE_RESULTS_GROUP "PackageKit Offline Update Results"
|
+#define PK_OFFLINE_UPDATE_RESULTS_GROUP "PackageKit Offline Update Results"
|
||||||
+#define PK_OFFLINE_UPDATE_RESULTS_FILENAME "/var/lib/PackageKit/offline-update-competed"
|
|
||||||
+
|
+
|
||||||
+static gboolean
|
+static gboolean
|
||||||
+check_offline_update_cb (gpointer user_data)
|
+check_offline_update_cb (gpointer user_data)
|
||||||
@ -2977,10 +2983,10 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-manager.c
|
|||||||
+
|
+
|
||||||
+ return GSD_UPDATES_MANAGER (manager_object);
|
+ return GSD_UPDATES_MANAGER (manager_object);
|
||||||
+}
|
+}
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-manager.h
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-manager.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-manager.h
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-manager.h
|
||||||
@@ -0,0 +1,56 @@
|
@@ -0,0 +1,56 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
@ -3038,10 +3044,10 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-manager.h
|
|||||||
+G_END_DECLS
|
+G_END_DECLS
|
||||||
+
|
+
|
||||||
+#endif /* __GSD_UPDATES_MANAGER_H */
|
+#endif /* __GSD_UPDATES_MANAGER_H */
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-plugin.c
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-plugin.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-plugin.c
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-plugin.c
|
||||||
@@ -0,0 +1,28 @@
|
@@ -0,0 +1,28 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
@ -3071,10 +3077,10 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-plugin.c
|
|||||||
+#include "gsd-updates-manager.h"
|
+#include "gsd-updates-manager.h"
|
||||||
+
|
+
|
||||||
+GNOME_SETTINGS_PLUGIN_REGISTER (GsdUpdates, gsd_updates)
|
+GNOME_SETTINGS_PLUGIN_REGISTER (GsdUpdates, gsd_updates)
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-refresh.c
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-refresh.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-refresh.c
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-refresh.c
|
||||||
@@ -0,0 +1,573 @@
|
@@ -0,0 +1,573 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
@ -3649,10 +3655,10 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-refresh.c
|
|||||||
+ return GSD_UPDATES_REFRESH (refresh);
|
+ return GSD_UPDATES_REFRESH (refresh);
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-refresh.h
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-refresh.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-refresh.h
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/gsd-updates-refresh.h
|
||||||
@@ -0,0 +1,52 @@
|
@@ -0,0 +1,52 @@
|
||||||
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
||||||
+ *
|
+ *
|
||||||
@ -3706,10 +3712,10 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/gsd-updates-refresh.h
|
|||||||
+G_END_DECLS
|
+G_END_DECLS
|
||||||
+
|
+
|
||||||
+#endif /* __GSD_UPDATES_REFRESH_H */
|
+#endif /* __GSD_UPDATES_REFRESH_H */
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/test-updates.c
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/test-updates.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/test-updates.c
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/test-updates.c
|
||||||
@@ -0,0 +1,7 @@
|
@@ -0,0 +1,7 @@
|
||||||
+#define NEW gsd_updates_manager_new
|
+#define NEW gsd_updates_manager_new
|
||||||
+#define START gsd_updates_manager_start
|
+#define START gsd_updates_manager_start
|
||||||
@ -3718,10 +3724,10 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/test-updates.c
|
|||||||
+#include "gsd-updates-manager.h"
|
+#include "gsd-updates-manager.h"
|
||||||
+
|
+
|
||||||
+#include "test-plugin.h"
|
+#include "test-plugin.h"
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/updates-design.svg
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/updates-design.svg
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/updates-design.svg
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/updates-design.svg
|
||||||
@@ -0,0 +1,765 @@
|
@@ -0,0 +1,765 @@
|
||||||
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
@ -4488,10 +4494,10 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/updates-design.svg
|
|||||||
+ inkscape:connector-curvature="0" />
|
+ inkscape:connector-curvature="0" />
|
||||||
+ </g>
|
+ </g>
|
||||||
+</svg>
|
+</svg>
|
||||||
Index: gnome-settings-daemon-3.20.1/plugins/updates/updates.gnome-settings-plugin.in
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/updates.gnome-settings-plugin.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ gnome-settings-daemon-3.20.1/plugins/updates/updates.gnome-settings-plugin.in
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/updates.gnome-settings-plugin.in
|
||||||
@@ -0,0 +1,9 @@
|
@@ -0,0 +1,9 @@
|
||||||
+[GNOME Settings Plugin]
|
+[GNOME Settings Plugin]
|
||||||
+Module=updates
|
+Module=updates
|
||||||
@ -4502,10 +4508,10 @@ Index: gnome-settings-daemon-3.20.1/plugins/updates/updates.gnome-settings-plugi
|
|||||||
+Authors=Richard Hughes
|
+Authors=Richard Hughes
|
||||||
+Copyright=Copyright © 2011
|
+Copyright=Copyright © 2011
|
||||||
+Website=
|
+Website=
|
||||||
Index: gnome-settings-daemon-3.20.1/po/POTFILES.in
|
Index: gnome-settings-daemon-3.22.1/po/POTFILES.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gnome-settings-daemon-3.20.1.orig/po/POTFILES.in
|
--- gnome-settings-daemon-3.22.1.orig/po/POTFILES.in
|
||||||
+++ gnome-settings-daemon-3.20.1/po/POTFILES.in
|
+++ gnome-settings-daemon-3.22.1/po/POTFILES.in
|
||||||
@@ -13,6 +13,7 @@ data/org.gnome.settings-daemon.plugins.o
|
@@ -13,6 +13,7 @@ data/org.gnome.settings-daemon.plugins.o
|
||||||
data/org.gnome.settings-daemon.plugins.power.gschema.xml.in.in
|
data/org.gnome.settings-daemon.plugins.power.gschema.xml.in.in
|
||||||
data/org.gnome.settings-daemon.plugins.print-notifications.gschema.xml.in.in
|
data/org.gnome.settings-daemon.plugins.print-notifications.gschema.xml.in.in
|
||||||
@ -4524,10 +4530,10 @@ Index: gnome-settings-daemon-3.20.1/po/POTFILES.in
|
|||||||
plugins/wacom/gsd-wacom-button-editor.c
|
plugins/wacom/gsd-wacom-button-editor.c
|
||||||
plugins/wacom/gsd-wacom-device.c
|
plugins/wacom/gsd-wacom-device.c
|
||||||
plugins/wacom/gsd-wacom-key-shortcut-button.c
|
plugins/wacom/gsd-wacom-key-shortcut-button.c
|
||||||
Index: gnome-settings-daemon-3.20.1/po/POTFILES.skip
|
Index: gnome-settings-daemon-3.22.1/po/POTFILES.skip
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gnome-settings-daemon-3.20.1.orig/po/POTFILES.skip
|
--- gnome-settings-daemon-3.22.1.orig/po/POTFILES.skip
|
||||||
+++ gnome-settings-daemon-3.20.1/po/POTFILES.skip
|
+++ gnome-settings-daemon-3.22.1/po/POTFILES.skip
|
||||||
@@ -19,6 +19,7 @@ data/org.gnome.settings-daemon.plugins.o
|
@@ -19,6 +19,7 @@ data/org.gnome.settings-daemon.plugins.o
|
||||||
data/org.gnome.settings-daemon.plugins.power.gschema.xml.in
|
data/org.gnome.settings-daemon.plugins.power.gschema.xml.in
|
||||||
data/org.gnome.settings-daemon.plugins.print-notifications.gschema.xml.in
|
data/org.gnome.settings-daemon.plugins.print-notifications.gschema.xml.in
|
||||||
@ -4536,10 +4542,10 @@ Index: gnome-settings-daemon-3.20.1/po/POTFILES.skip
|
|||||||
data/org.gnome.settings-daemon.plugins.xrandr.gschema.xml.in
|
data/org.gnome.settings-daemon.plugins.xrandr.gschema.xml.in
|
||||||
data/org.gnome.settings-daemon.plugins.xsettings.gschema.xml.in
|
data/org.gnome.settings-daemon.plugins.xsettings.gschema.xml.in
|
||||||
plugins/automount/gnome-fallback-mount-helper.desktop.in
|
plugins/automount/gnome-fallback-mount-helper.desktop.in
|
||||||
Index: gnome-settings-daemon-3.20.1/data/org.gnome.settings-daemon.plugins.gschema.xml.in.in
|
Index: gnome-settings-daemon-3.22.1/data/org.gnome.settings-daemon.plugins.gschema.xml.in.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gnome-settings-daemon-3.20.1.orig/data/org.gnome.settings-daemon.plugins.gschema.xml.in.in
|
--- gnome-settings-daemon-3.22.1.orig/data/org.gnome.settings-daemon.plugins.gschema.xml.in.in
|
||||||
+++ gnome-settings-daemon-3.20.1/data/org.gnome.settings-daemon.plugins.gschema.xml.in.in
|
+++ gnome-settings-daemon-3.22.1/data/org.gnome.settings-daemon.plugins.gschema.xml.in.in
|
||||||
@@ -26,6 +26,7 @@
|
@@ -26,6 +26,7 @@
|
||||||
<child name="sharing" schema="org.gnome.settings-daemon.plugins.sharing"/>
|
<child name="sharing" schema="org.gnome.settings-daemon.plugins.sharing"/>
|
||||||
<child name="smartcard" schema="org.gnome.settings-daemon.plugins.smartcard"/>
|
<child name="smartcard" schema="org.gnome.settings-daemon.plugins.smartcard"/>
|
||||||
@ -4548,3 +4554,58 @@ Index: gnome-settings-daemon-3.20.1/data/org.gnome.settings-daemon.plugins.gsche
|
|||||||
<child name="xrandr" schema="org.gnome.settings-daemon.plugins.xrandr"/>
|
<child name="xrandr" schema="org.gnome.settings-daemon.plugins.xrandr"/>
|
||||||
<child name="xsettings" schema="org.gnome.settings-daemon.plugins.xsettings"/>
|
<child name="xsettings" schema="org.gnome.settings-daemon.plugins.xsettings"/>
|
||||||
</schema>
|
</schema>
|
||||||
|
Index: gnome-settings-daemon-3.22.1/plugins/updates/pk-offline-clear-update.c
|
||||||
|
===================================================================
|
||||||
|
--- /dev/null
|
||||||
|
+++ gnome-settings-daemon-3.22.1/plugins/updates/pk-offline-clear-update.c
|
||||||
|
@@ -0,0 +1,50 @@
|
||||||
|
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
||||||
|
+ *
|
||||||
|
+ * Copyright (C) 2012 Richard Hughes <richard@hughsie.com>
|
||||||
|
+ *
|
||||||
|
+ * Licensed under the GNU General Public License Version 2
|
||||||
|
+ *
|
||||||
|
+ * This program is free software; you can redistribute it and/or modify
|
||||||
|
+ * it under the terms of the GNU General Public License as published by
|
||||||
|
+ * the Free Software Foundation; either version 2 of the License, or
|
||||||
|
+ * (at your option) any later version.
|
||||||
|
+ *
|
||||||
|
+ * This program is distributed in the hope that it will be useful,
|
||||||
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
+ * GNU General Public License for more details.
|
||||||
|
+ *
|
||||||
|
+ * You should have received a copy of the GNU General Public License
|
||||||
|
+ * along with this program; if not, write to the Free Software
|
||||||
|
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+#include <errno.h>
|
||||||
|
+#include <stdio.h>
|
||||||
|
+#include <stdlib.h>
|
||||||
|
+#include <string.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
+
|
||||||
|
+/* Header needed for the location of PK_OFFLINE_UPDATE_RESULTS_FILENAME */
|
||||||
|
+#include "gsd-updates-common.h"
|
||||||
|
+
|
||||||
|
+int
|
||||||
|
+main (int argc, char *argv[])
|
||||||
|
+{
|
||||||
|
+ int rc;
|
||||||
|
+
|
||||||
|
+ /* ensure root user */
|
||||||
|
+ if (getuid () != 0 || geteuid () != 0) {
|
||||||
|
+ fprintf (stderr, "This program can only be used using pkexec\n");
|
||||||
|
+ return EXIT_FAILURE;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ /* Just delete the file, no questions asked :) */
|
||||||
|
+ rc = unlink (PK_OFFLINE_UPDATE_RESULTS_FILENAME);
|
||||||
|
+ if (rc < 0) {
|
||||||
|
+ fprintf (stderr, "Failed to remove file: %s\n", strerror (errno));
|
||||||
|
+ return EXIT_FAILURE;
|
||||||
|
+ }
|
||||||
|
+ return EXIT_SUCCESS;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
86
gnome-settings-daemon-shutdown-dialog-delay.patch
Normal file
86
gnome-settings-daemon-shutdown-dialog-delay.patch
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
From 21fb652101fbf81d16f76178da9614dcd547686a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Bastien Nocera <hadess@hadess.net>
|
||||||
|
Date: Thu, 17 Nov 2016 14:03:37 +0100
|
||||||
|
Subject: media-keys: Fix shutdown dialog delay when using kbd shortcut
|
||||||
|
|
||||||
|
After pressing the Ctrl+Alt+Del shortcut, the shutdown dialog doesn't
|
||||||
|
appear on screen for a couple of seconds.
|
||||||
|
|
||||||
|
The media-keys daemon calls the 'Shutdown' method synchronously. After that
|
||||||
|
gnome-session calls the daemon with 'QueryEndSession'. The daemon cannot
|
||||||
|
reply as it's blocked waiting for the reply to the Shutdown method.
|
||||||
|
|
||||||
|
Sending the message asynchronously fixes that delay.
|
||||||
|
|
||||||
|
Based on report by Xiaoguang Wang <xwang@suse.com>
|
||||||
|
|
||||||
|
https://bugzilla.gnome.org/show_bug.cgi?id=774452
|
||||||
|
---
|
||||||
|
plugins/media-keys/gsd-media-keys-manager.c | 46 +++++++++++++++++++----------
|
||||||
|
1 file changed, 31 insertions(+), 15 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
|
||||||
|
index aec094b..c178752 100644
|
||||||
|
--- a/plugins/media-keys/gsd-media-keys-manager.c
|
||||||
|
+++ b/plugins/media-keys/gsd-media-keys-manager.c
|
||||||
|
@@ -813,26 +813,42 @@ do_media_action (GsdMediaKeysManager *manager,
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
+gnome_session_shutdown_cb (GObject *source_object,
|
||||||
|
+ GAsyncResult *res,
|
||||||
|
+ gpointer user_data)
|
||||||
|
+{
|
||||||
|
+ GVariant *result;
|
||||||
|
+ GError *error = NULL;
|
||||||
|
+
|
||||||
|
+ result = g_dbus_proxy_call_finish (G_DBUS_PROXY (source_object),
|
||||||
|
+ res,
|
||||||
|
+ &error);
|
||||||
|
+ if (result == NULL) {
|
||||||
|
+ if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||||
|
+ g_warning ("Failed to call Shutdown on session manager: %s",
|
||||||
|
+ error->message);
|
||||||
|
+ g_error_free (error);
|
||||||
|
+ } else {
|
||||||
|
+ g_variant_unref (result);
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+static void
|
||||||
|
gnome_session_shutdown (GsdMediaKeysManager *manager)
|
||||||
|
{
|
||||||
|
- GError *error = NULL;
|
||||||
|
- GVariant *variant;
|
||||||
|
GDBusProxy *proxy;
|
||||||
|
|
||||||
|
proxy = G_DBUS_PROXY (gnome_settings_bus_get_session_proxy ());
|
||||||
|
- variant = g_dbus_proxy_call_sync (proxy,
|
||||||
|
- "Shutdown",
|
||||||
|
- NULL,
|
||||||
|
- G_DBUS_CALL_FLAGS_NONE,
|
||||||
|
- -1,
|
||||||
|
- NULL,
|
||||||
|
- &error);
|
||||||
|
- if (variant == NULL) {
|
||||||
|
- g_warning ("Failed to call Shutdown on session manager: %s", error->message);
|
||||||
|
- g_error_free (error);
|
||||||
|
- return;
|
||||||
|
- }
|
||||||
|
- g_variant_unref (variant);
|
||||||
|
+
|
||||||
|
+ g_dbus_proxy_call (proxy,
|
||||||
|
+ "Shutdown",
|
||||||
|
+ NULL,
|
||||||
|
+ G_DBUS_CALL_FLAGS_NONE,
|
||||||
|
+ -1,
|
||||||
|
+ manager->priv->bus_cancellable,
|
||||||
|
+ gnome_session_shutdown_cb,
|
||||||
|
+ NULL);
|
||||||
|
+
|
||||||
|
g_object_unref (proxy);
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
cgit v0.12
|
||||||
|
|
@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 13 21:41:44 UTC 2017 - zaitor@opensuse.org
|
||||||
|
|
||||||
|
- Apply gnome-settings-daemon-initial-keyboard.patch also for
|
||||||
|
openSUSE, this fix is also needed there (boo#1009515).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 13 21:41:43 UTC 2017 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Also apply gnome-settings-daemon-more-power-button-actions.patch
|
||||||
|
on openSUSE.
|
||||||
|
- Fixup gnome-settings-daemon-bring-back-updates-plugin.patch: also
|
||||||
|
backport pk-clear-offline-update from PackageKit into this patch.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 16 01:12:33 UTC 2016 - xwang@suse.com
|
||||||
|
|
||||||
|
- Add gnome-settings-daemon-shutdown-dialog-delay.patch: Fix
|
||||||
|
'Shutdown dialog delay 1 to 2 seconds' (bsc#979257, bgo#774452).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 13 10:46:18 UTC 2016 - sckang@suse.com
|
Thu Oct 13 10:46:18 UTC 2016 - sckang@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gnome-settings-daemon
|
# spec file for package gnome-settings-daemon
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -45,12 +45,14 @@ Patch21: gnome-settings-daemon-notify-idle-resumed.patch
|
|||||||
Patch22: gnome-settings-daemon-bnc873545-hide-warnings.patch
|
Patch22: gnome-settings-daemon-bnc873545-hide-warnings.patch
|
||||||
# PATCH-FIX-SLE gnome-settings-daemon-sle-configure-timeout-blank.patch bnc#869685 bgo#710904 cxiong@suse.com -- monitor off timeout is too short, extends it to 5 min
|
# PATCH-FIX-SLE gnome-settings-daemon-sle-configure-timeout-blank.patch bnc#869685 bgo#710904 cxiong@suse.com -- monitor off timeout is too short, extends it to 5 min
|
||||||
Patch24: gnome-settings-daemon-sle-configure-timeout-blank.patch
|
Patch24: gnome-settings-daemon-sle-configure-timeout-blank.patch
|
||||||
# PATCH-FIX-SLE gnome-settings-daemon-initial-keyboard.patch bsc#979051 federico@suse.com -- Deal with the default keyboard being set from xkb instead of GNOME
|
# PATCH-FIX-OPENSUSE gnome-settings-daemon-initial-keyboard.patch bsc#979051 boo#1009515 federico@suse.com -- Deal with the default keyboard being set from xkb instead of GNOME
|
||||||
Patch29: gnome-settings-daemon-initial-keyboard.patch
|
Patch29: gnome-settings-daemon-initial-keyboard.patch
|
||||||
# PATCH-FIX-OPENSUSE gnome-settings-daemon-bring-back-updates-plugin.patch bsc#991024 sckang@suse.com -- Add the updates plugin back
|
# PATCH-FIX-OPENSUSE gnome-settings-daemon-bring-back-updates-plugin.patch bsc#991024 sckang@suse.com -- Add the updates plugin back
|
||||||
Patch31: gnome-settings-daemon-bring-back-updates-plugin.patch
|
Patch31: gnome-settings-daemon-bring-back-updates-plugin.patch
|
||||||
# PATCH-FEATURE-OPENSUSE gnome-settings-daemon-more-power-button-actions.patch bsc#996342 fezhang@suse.com -- Bring back the "shutdown" and "interactive" power button actions.
|
# PATCH-FEATURE-OPENSUSE gnome-settings-daemon-more-power-button-actions.patch bsc#996342 fezhang@suse.com -- Bring back the "shutdown" and "interactive" power button actions.
|
||||||
Patch32: gnome-settings-daemon-more-power-button-actions.patch
|
Patch32: gnome-settings-daemon-more-power-button-actions.patch
|
||||||
|
# PATCH-FIX-UPSTREAM gnome-settings-daemon-shutdown-dialog-delay.patch bgo#774452 xwang@suse.com -- Shutdown dialog delay 1 to 2 seconds.
|
||||||
|
Patch33: gnome-settings-daemon-shutdown-dialog-delay.patch
|
||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
@ -158,12 +160,13 @@ gnome-patch-translation-prepare
|
|||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
%patch22 -p1
|
||||||
%patch24 -p0
|
%patch24 -p0
|
||||||
%patch29 -p1
|
|
||||||
%endif
|
%endif
|
||||||
|
%patch29 -p1
|
||||||
%if 0%{?suse_version} == 1315
|
%if 0%{?suse_version} == 1315
|
||||||
%patch31 -p1
|
%patch31 -p1
|
||||||
%patch32 -p1
|
|
||||||
%endif
|
%endif
|
||||||
|
%patch32 -p1
|
||||||
|
%patch33 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?suse_version} == 1315
|
%if 0%{?suse_version} == 1315
|
||||||
@ -263,6 +266,7 @@ rm -rf %{buildroot}
|
|||||||
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.sharing.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.sharing.gschema.xml
|
||||||
%if 0%{?suse_version} == 1315
|
%if 0%{?suse_version} == 1315
|
||||||
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.updates.gschema.xml
|
||||||
|
%{_libexecdir}/gnome-settings-daemon-3.0/pk-clear-offline-update
|
||||||
%endif
|
%endif
|
||||||
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.xrandr.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.xrandr.gschema.xml
|
||||||
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.xsettings.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.xsettings.gschema.xml
|
||||||
|
Loading…
Reference in New Issue
Block a user