[gnome-settings-daemon] updates: Allow the shell time to initialize before checking for offline update failures
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] updates: Allow the shell time to initialize before checking for offline update failures
- Date: Wed, 23 Jan 2013 13:32:29 +0000 (UTC)
commit 7fdf8032363ff13b0a410696ada011f3b13a2997
Author: Richard Hughes <richard hughsie com>
Date: Wed Jan 23 13:26:29 2013 +0000
updates: Allow the shell time to initialize before checking for offline update failures
5 seconds isn't enough time on some slow machines to complete g-s-d startup and
for the shell to startup enough to handle notifications.
This fixes the warning some people got in .xsession-errors like:
updates-plugin-WARNING **: error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod:
No such interface `org.freedesktop.Notifications' on object at path /org/freedesktop/Notifications
plugins/updates/gsd-updates-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-manager.c b/plugins/updates/gsd-updates-manager.c
index ad8ea61..d361943 100644
--- a/plugins/updates/gsd-updates-manager.c
+++ b/plugins/updates/gsd-updates-manager.c
@@ -42,6 +42,7 @@
#define MAX_FAILED_GET_UPDATES 10 /* the maximum number of tries */
#define GSD_UPDATES_ICON_NORMAL "software-update-available-symbolic"
#define GSD_UPDATES_ICON_URGENT "software-update-urgent-symbolic"
+#define GSD_UPDATES_CHECK_OFFLINE_TIMEOUT 30 /* time in seconds */
struct GsdUpdatesManagerPrivate
{
@@ -1332,7 +1333,7 @@ gsd_updates_manager_start (GsdUpdatesManager *manager,
/* check for offline update */
manager->priv->offline_update_id =
- g_timeout_add_seconds (5,
+ g_timeout_add_seconds (GSD_UPDATES_CHECK_OFFLINE_TIMEOUT,
check_offline_update_cb,
manager);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]