diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 315bfdb17..c8cba607b 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -186,7 +186,8 @@ const FdoNotificationDaemon = new Lang.Class({ return source; } - source = new FdoNotificationDaemonSource(title, pid, sender, ndata ? ndata.hints['desktop-entry'] : null); + let appId = ndata ? ndata.hints['desktop-entry'] || null : null; + source = new FdoNotificationDaemonSource(title, pid, sender, appId); this._sources.push(source); source.connect('destroy', Lang.bind(this, function() {