From 114d32a28f3b594419f7e8cd332e169f0fef1519 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Sun, 11 Aug 2013 18:58:46 +0200 Subject: [PATCH] NotificationDaemon: fix fallout from db75734774e97f735b9d5da36ef04c7fa043b26d The public API of ShellAppSystem was changed, now both the desktop and startup wmclass must be looked up. https://bugzilla.gnome.org/show_bug.cgi?id=705801 --- js/ui/notificationDaemon.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 1a49827a0..de4271131 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -734,7 +734,11 @@ const Source = new Lang.Class({ return app; if (this.trayIcon) { - app = Shell.AppSystem.get_default().lookup_wmclass(this.trayIcon.wm_class); + app = Shell.AppSystem.get_default().lookup_startup_wmclass(this.trayIcon.wm_class); + if (app != null) + return app; + + app = Shell.AppSystem.get_default().lookup_desktop_wmclass(this.trayIcon.wm_class); if (app != null) return app; }