After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 706696 - updates: Notify about available offline updates
updates: Notify about available offline updates
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: updates
unspecified
Other All
: Normal normal
: ---
Assigned To: Richard Hughes
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2013-08-24 00:05 UTC by Matthias Clasen
Modified: 2013-08-27 11:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
updates: Notify about available offline updates (6.61 KB, patch)
2013-08-24 00:05 UTC, Matthias Clasen
none Details | Review
updates: Notify about available offline updates (6.61 KB, patch)
2013-08-26 11:07 UTC, Matthias Clasen
committed Details | Review
updates: Notify about available offline updates (6.73 KB, patch)
2013-08-27 11:48 UTC, Matthias Clasen
committed Details | Review
updates: Notify about available offline updates (9.39 KB, patch)
2013-08-27 11:54 UTC, Matthias Clasen
committed Details | Review

Description Matthias Clasen 2013-08-24 00:05:45 UTC
gnome-shell no longer shows a menuitem when a prepared offline
update is available, so the updates plugin needs to take over
the responsibility and pop up a notification in this case.

We monitor /var/lib/PackageKit/prepared-update and show a notification
when the file is created. We don't show it more often than once
every 5 minutes. To handle the case that the file already exists
when gnome-settings-daemon is started, we check for its existence
once, 5 minutes after starting. The notification offers to launch
gnome-software to view details of the prepared update.
Comment 1 Matthias Clasen 2013-08-24 00:05:47 UTC
Created attachment 252960 [details] [review]
updates: Notify about available offline updates
Comment 2 Matthias Clasen 2013-08-26 11:07:51 UTC
Created attachment 253117 [details] [review]
updates: Notify about available offline updates

gnome-shell no longer shows a menuitem when a prepared offline
update is available, so the updates plugin needs to take over
the responsibility and pop up a notification in this case.

We monitor /var/lib/PackageKit/prepared-update and show a notification
when the file is created. We don't show it more often than once
every 5 minutes. To handle the case that the file already exists
when gnome-settings-daemon is started, we check for its existence
once, 5 minutes after starting. The notification offers to launch
gnome-software to view details of the prepared update.
Comment 3 Matthias Clasen 2013-08-26 11:09:00 UTC
The new patch adds a fallback for when gnome-software is not installed - that seems advisable, since gnome-software is still pre-alpha, and we don't have another UI installing offline updates anymore.
Comment 4 Matthias Clasen 2013-08-27 11:48:36 UTC
Created attachment 253237 [details] [review]
updates: Notify about available offline updates

gnome-shell no longer shows a menuitem when a prepared offline
update is available, so the updates plugin needs to take over
the responsibility and pop up a notification in this case.

We monitor /var/lib/PackageKit/prepared-update and show a notification
when the file is created. We don't show it more often than once
every 5 minutes. To handle the case that the file already exists
when gnome-settings-daemon is started, we check for its existence
once, 5 minutes after starting. The notification offers to launch
gnome-software to view details of the prepared update.

If gnome-software is not available, we just trigger the restart
to install the updates directly from the notification.
Comment 5 Matthias Clasen 2013-08-27 11:54:08 UTC
Created attachment 253238 [details] [review]
updates: Notify about available offline updates

gnome-shell no longer shows a menuitem when a prepared offline
update is available, so the updates plugin needs to take over
the responsibility and pop up a notification in this case.

We monitor /var/lib/PackageKit/prepared-update and show a notification
when the file is created. We don't show it more often than once
every 5 minutes. To handle the case that the file already exists
when gnome-settings-daemon is started, we check for its existence
once, 5 minutes after starting. The notification offers to launch
gnome-software to view details of the prepared update.

If gnome-software is not available, we just trigger the restart
to install the updates directly from the notification.
Comment 6 Richard Hughes 2013-08-27 11:55:35 UTC
Review of attachment 253238 [details] [review]:

Looks good, thanks.
Comment 7 Matthias Clasen 2013-08-27 11:55:47 UTC
Attachment 253117 [details] pushed as 4067309 - updates: Notify about available offline updates
Attachment 253237 [details] pushed as 4067309 - updates: Notify about available offline updates
Attachment 253238 [details] pushed as 4067309 - updates: Notify about available offline updates