notificationDaemon: Only store policies for "real" apps

Fake, window-backed apps should not have a policy for them.
This commit is contained in:
Jasper St. Pierre 2013-11-04 11:45:22 -05:00
parent 1c68aee577
commit 5f9e3edbe1

View File

@ -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 {