Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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:

sudo add-apt-repository ppa:jconti/recent-notifications
sudo apt-get update
sudo apt-get install indicator-notifications

Maybe that will help.

share|improve this answer
The notify-osd.log file would fit my needs perfectly, but since it doesn't exist in 12.04 (I can't find it in my installation either) that isn't going to work for me. Is it possible that the file is missing because of a bug? – Christopher Sep 17 '12 at 14:52
Quick google tells me that users complained about that file waking up their hard drives. – January Sep 17 '12 at 16:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.