Package: gnome-settings-daemon
Version: 3.14.2-3
Followup-For: Bug #678340

I turned on the debug flag in gnome-settings-daemon to see why the
package cache is never refreshed automatically on my computer. There
was a message "not when session active" in the debug output. The
package cache is refreshed only when the computer is idle. The daemon
obtains information about idle status by handling a signal
"StatusChanged" from org.gnome.SessionManager. However, this signal is
emitted by org.gnome.SessionManager.Presence, so the daemon never
receives it.

There is no handler for signals from
org.gnome.SessionManager.Presence, so the simplest solution is to just
disable the check for the idle status. The package cache will be
refreshed even if the user is not idle, but it's better than no
refresh at all. A patch is attached.

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-settings-daemon depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.22.0-1
ii  gsettings-desktop-schemas                    3.14.1-1
ii  libc6                                        2.19-18+deb8u1
ii  libcairo2                                    1.14.0-2.1
ii  libcanberra-gtk3-0                           0.30-2.1
ii  libcanberra0                                 0.30-2.1
ii  libcolord2                                   1.2.1-1+b2
ii  libcups2                                     1.7.5-11+deb8u1
ii  libfontconfig1                               2.11.0-6.3
ii  libgdk-pixbuf2.0-0                           2.31.1-2+deb8u3
ii  libgeocode-glib0                             3.14.0-1
ii  libglib2.0-0                                 2.42.1-1
ii  libgnome-desktop-3-10                        3.14.1-1
ii  libgtk-3-0                                   3.14.5-1+deb8u1
ii  libgudev-1.0-0                               215-17+deb8u2
ii  libgweather-3-6                              3.14.1-1
ii  liblcms2-2                                   2.6-3+b3
ii  libnm-glib4                                  0.9.10.0-7
ii  libnm-util2                                  0.9.10.0-7
ii  libnotify4                                   0.7.6-2
ii  libnspr4                                     2:4.10.7-1
ii  libnss3                                      2:3.17.2-1.1+deb8u2
ii  libpackagekit-glib2-18                       1.0.1-2
ii  libpam-systemd                               215-17+deb8u2
ii  libpango-1.0-0                               1.36.8-3
ii  libpangocairo-1.0-0                          1.36.8-3
ii  libpolkit-gobject-1-0                        0.105-8
ii  libpulse-mainloop-glib0                      5.0-13
ii  libpulse0                                    5.0-13
ii  librsvg2-2                                   2.40.5-1
ii  libupower-glib3                              0.99.1-3.2
ii  libwacom2                                    0.8-1
ii  libwayland-client0                           1.6.0-2
ii  libx11-6                                     2:1.6.2-3
ii  libxext6                                     2:1.3.3-1
ii  libxfixes3                                   1:5.0.1-2+b2
ii  libxi6                                       2:1.7.4-1+b2
ii  libxtst6                                     2:1.2.2-1+b1
ii  nautilus-data                                3.14.1-2

Versions of packages gnome-settings-daemon recommends:
ii  pulseaudio  5.0-13

Versions of packages gnome-settings-daemon suggests:
pn  gnome-screensaver            <none>
ii  metacity [x-window-manager]  1:3.14.3-1
ii  mutter [x-window-manager]    3.14.4-1~deb8u1
ii  x11-xserver-utils            7.7+3+b1

-- no debconf information
--- gnome-settings-daemon-3.14.2.orig/plugins/updates/gsd-updates-refresh.c
+++ gnome-settings-daemon-3.14.2/plugins/updates/gsd-updates-refresh.c
@@ -149,10 +149,12 @@ maybe_refresh_cache (GsdUpdatesRefresh *
         }
 
         /* only do the refresh cache when the user is idle */
+	/*
         if (!refresh->priv->session_idle) {
                 g_debug ("not when session active");
                 return;
         }
+	*/
 
         /* get this each time, as it may have changed behind out back */
         thresh = g_settings_get_int (refresh->priv->settings,

Reply via email to