From 1e3796967e0b61a74c75c47ba066f25dbed0109a Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 6 Aug 2012 16:34:20 +0200 Subject: [PATCH] NotificationDaemon: don't override the title for app notifications If a source is associated with an app, ignore the app name provided by libnotify, as that is often garbage. This fixes the "XChat-GNOME OSD" problem. https://bugzilla.gnome.org/show_bug.cgi?id=681143 --- js/ui/notificationDaemon.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 8fdb9e022..0eee59b87 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -629,6 +629,16 @@ const Source = new Lang.Class({ } }, + setTitle: function(title) { + // Do nothing if .app is set, we don't want to override the + // app name with whatever is provided through libnotify (usually + // garbage) + if (this.app) + return; + + this.parent(title); + }, + open: function(notification) { this.destroyNonResidentNotifications(); this.openApp();