GNOME Bugzilla – Bug 750625
Should dismiss Software Updates Available notification after installing updates
Last modified: 2015-06-23 12:25:22 UTC
Should dismiss the Software Updates Available notification after installing updates, rather than displaying it alongside the Software Updates Installed notification.
gnome-software has code that's supposed to clear out old updates notifications each time it starts. Not sure what might be going wrong here ... https://git.gnome.org/browse/gnome-software/tree/src/gs-update-monitor.c#n592
After some debugging, this turned out to be a bug in glib. Even though its docs state that g_application_withdraw_notification() can be used to withdraw notifications from a previous run, this doesn't currently work in practice because it doesn't initialize its notification backend in the withdraw_notification() code path.
Created attachment 305849 [details] [review] gapplication: Initialize backend before withdrawing notifications Make sure to initialize the notification backend in g_application_withdraw_notification() the same way as is done in g_application_send_notification(). This makes it possible for an app to withdraw notifications it has sent in a previous execution of the application.
Review of attachment 305849 [details] [review]: looks good. thanks.
Thanks desrt! Attachment 305849 [details] pushed as c612fca - gapplication: Initialize backend before withdrawing notifications