notificationDaemon: Only store policies for "real" apps
Fake, window-backed apps should not have a policy for them.
This commit is contained in:
parent
1c68aee577
commit
5f9e3edbe1
@ -582,7 +582,7 @@ const FdoNotificationDaemonSource = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_createPolicy: function() {
|
_createPolicy: function() {
|
||||||
if (this.app) {
|
if (this.app && this.app.get_app_info()) {
|
||||||
let id = this.app.get_id().replace(/\.desktop$/,'');
|
let id = this.app.get_id().replace(/\.desktop$/,'');
|
||||||
return new MessageTray.NotificationApplicationPolicy(id);
|
return new MessageTray.NotificationApplicationPolicy(id);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user