Codebase list gnome-settings-daemon / b956ca4
* debian/patches/power-ignore-bad-dbus-requests.patch: - If we get a DBus request while the manager isn't active, ignore it. LP: #969535 Fixes LP: #969535 (bzr r323) Michael Terry 12 years ago
3 changed file(s) with 36 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
22 * debian/patches/power-check-null-devices.patch:
33 - NULL-guard the return value of up_client_get_devices.
44 LP: #868928
5
6 -- Michael Terry <mterry@ubuntu.com> Wed, 25 Apr 2012 16:24:53 -0400
5 * debian/patches/power-ignore-bad-dbus-requests.patch:
6 - If we get a DBus request while the manager isn't active, ignore it.
7 LP: #969535
8
9 -- Michael Terry <mterry@ubuntu.com> Wed, 25 Apr 2012 17:00:56 -0400
710
811 gnome-settings-daemon (3.4.1-0ubuntu1) precise-proposed; urgency=low
912
0 Index: gnome-settings-daemon-3.4.1/plugins/power/gsd-power-manager.c
1 ===================================================================
2 --- gnome-settings-daemon-3.4.1.orig/plugins/power/gsd-power-manager.c 2012-04-25 16:53:47.385612908 -0400
3 +++ gnome-settings-daemon-3.4.1/plugins/power/gsd-power-manager.c 2012-04-25 17:04:19.765619601 -0400
4 @@ -4149,6 +4149,12 @@
5 {
6 GsdPowerManager *manager = GSD_POWER_MANAGER (user_data);
7
8 + /* Check session pointer as a proxy for whether the manager is in the
9 + start or stop state */
10 + if (manager->priv->session == NULL) {
11 + return;
12 + }
13 +
14 g_debug ("Calling method '%s.%s' for Power",
15 interface_name, method_name);
16
17 @@ -4183,6 +4189,12 @@
18 GsdPowerManager *manager = GSD_POWER_MANAGER (user_data);
19 GVariant *retval = NULL;
20
21 + /* Check session pointer as a proxy for whether the manager is in the
22 + start or stop state */
23 + if (manager->priv->session == NULL) {
24 + return NULL;
25 + }
26 +
27 if (g_strcmp0 (property_name, "Icon") == 0) {
28 retval = engine_get_icon_property_variant (manager);
29 } else if (g_strcmp0 (property_name, "Tooltip") == 0) {
2525 git_keyring_environment.patch
2626 power-no-fallback-notifications.patch
2727 power-check-null-devices.patch
28 power-ignore-bad-dbus-requests.patch