FdoNotificationDaemonSource and messageTray signal issue
Affected version
- Ubuntu 20.04.1 LTS x86_64
- GNOME Shell 3.36.4
Bug summary
When using Main.messageTray.connect('source-added', (t,source)=>{}) the "notifications" variables of "source" returns an empty array, if you try to run it no LookingGlass it return a array of "notifications" properly.
Steps to reproduce
- Step one
Make a simple extension.js and paste this code.
init () {
Main.messageTray.connect("source-added", (t, source) => { log(source.notifications);});
}
- Step two
trigger a notification in terminal
What happened
messageTray signals in init returns empty array of notifications but using LookingGlass it return the array properly.
What did you expect to happen
when listening to "source-added" in init the source returns "notifications" array properly
Edited by Fernando Ferreira