Allow for empty WM_CLASS and _NET_WM_NAME in tray icons
The system tray specification says the hint should be set, but some icons leave it empty anyway. Don't throw exceptions in that case. https://bugzilla.gnome.org/show_bug.cgi?id=633028
This commit is contained in:
@ -372,7 +372,7 @@ NotificationDaemon.prototype = {
|
||||
_onTrayIconAdded: function(o, icon) {
|
||||
let source = this._sources[icon.pid];
|
||||
if (!source)
|
||||
source = this._newSource(icon.title, icon.pid);
|
||||
source = this._newSource(icon.title || icon.wm_class || _("Unknown"), icon.pid);
|
||||
source.setTrayIcon(icon);
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user