Hi Milan,
1)
I was reading
https://gitlab.gnome.org/GNOME/gnome-shell/issues/155, and in e-alarm-notify.c#L253 it is adding a notificatio action, i.e a "Reminder" button. The problem is under Unity, notification server (notify-osd) doesn't support notification action. And hence instead of notification-bubble it pops up a dialog which is obtrusive.
In unity we also set notify-with-tray to false, so both dialog is appearing at the same time. For the time being I set notify-with-tray to true.
Will it be possible to check notification server capabilities before adding an action ?
2)
That brings the question how in unity we should show notification. Well in unity we can show notification in messeging menu and clicking it will simply bring forward hidden dialog from notification tray.
If there is one single alarm pending, it will simply show evnt name with time, for multiple alarms it show "N alarms pending".
And we can check session the same way we can check for gnome. On Ubuntu, XDG_CURRENT_DESKTOP is "Unity7:Unity:Ubuntu"
For 1) I can file a bug in gitlab.
For 2) I have a prototype code, it can be patched in eds or we can do it from indicator-datetime or patch downstream.
3) Is there bus signal we can watch when a notification-tray appears ? I am watching "notify" signal from ca.desrt.dconf.Writer and checking 'reminder-past' in 'org.gnome.evolution-data-server.calendar', but that's not very productive.
Let me know what you think.
Thank You.