[gnome-shell] notificationDaemon: Only store policies for "real" apps
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] notificationDaemon: Only store policies for "real" apps
- Date: Mon, 4 Nov 2013 16:47:52 +0000 (UTC)
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]