I would like to programmatically monitor the notifications that get displayed in Ubuntu (in order to perform different actions based on the content of the notifications). I do not see a feature that offers this sort of ability documented anywhere in notify-osd. Can anyone recommend a method for accomplishing this?
In theory at least, you can find all notifications in the file
However, I no longer find that file in 12.04.
There is an applet called "recent notifications", and you can install it by adding a PPA repository:
Maybe that will help.