I am currently trying to debug an issue, that Franz is sometimes not brought up again after clicking on a notification sent by Franz (https://github.com/meetfranz/franz/issues/1605).
To determine, whether that is a problem either by the application or gnome-shell I would like to list the notifications and their properties (especially something like a callback link to the application). Does anyone know a way to monitor or list them and could help me with that?
The only way today do that, realistically, is from inside gnome-shell. It’s not super difficult, but also not trivial to explain. Essentially you’d want to iterate all notification sources and iterate each notification for that source. It’s possible you could just pass each notification to JSON.stringify() and log them.
An easier way to debug this might be to just run dbus-monitor on the session bus to see what’s happening when the notifications are sent to gnome-shell and when they’re clicked. IIRC, the application just gets Activate called on the org.freedesktop.Application interface when a notification is clicked.
An easier way to debug this might be to just run dbus-monitor on the session bus to see what’s happening when the notifications are sent to gnome-shell and when they’re clicked