[gnome-software/wip/ubuntu-3-24: 4/11] gs-update-monitor: Hide "Software Updates Available" notification under Unity



commit 05c6a74a9acde92e790e6e8c234031b4cb585c1c
Author: Iain Lane <iain orangesquash org uk>
Date:   Wed Jan 25 14:41:47 2017 +0000

    gs-update-monitor: Hide "Software Updates Available" notification under Unity
    
    This environment already has `update-manager' as the established way for
    users to receive updates, for now.

 src/gs-update-monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index fbd91ee..c569d1e 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -92,7 +92,7 @@ notify_offline_update_available (GsUpdateMonitor *monitor)
                g_notification_add_button (n, _("Restart & Install"), "app.reboot-and-install");
                g_notification_set_default_action_and_target (n, "app.set-mode", "s", "updates");
                g_application_send_notification (monitor->application, "updates-available", n);
-       } else {
+       } else if (!gs_utils_is_current_desktop ("Unity")) {
                title = _("Software Updates Available");
                body = _("Important OS and application updates are ready to be installed");
                n = g_notification_new (title);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]