[gnome-shell] notificationDaemon: Only store policies for "real" apps



commit 5f9e3edbe1f84684f849d20413b3d1f00521eb84
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Nov 4 11:45:22 2013 -0500

    notificationDaemon: Only store policies for "real" apps
    
    Fake, window-backed apps should not have a policy for them.

 js/ui/notificationDaemon.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index d75224f..214315c 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -582,7 +582,7 @@ const FdoNotificationDaemonSource = new Lang.Class({
     },
 
     _createPolicy: function() {
-        if (this.app) {
+        if (this.app && this.app.get_app_info()) {
             let id = this.app.get_id().replace(/\.desktop$/,'');
             return new MessageTray.NotificationApplicationPolicy(id);
         } else {


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