Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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'm trying to integrate my app with Ubuntu notification system. It works ok, but I don't know how to show my icon in the bubble. My code looks something like:

notification = ("Title", "Some text here", "/data/media/my-app-icon.svg") ()

Unfortunately only text is visible.

share|improve this question
Double-check the icon filename and make sure its permissions are set so it's readable by your app. won't throw any errors if it can't load the icon. Also, any more code you could show us would help. – Alvin Row Aug 19 '12 at 22:22
I noticed that icon works if I specify path like this: notification = ("Title", "Some text here", "/home/michal/Development/easy-stopwatch/data/media/my-app-icon.svg") () But this will not work on any other computer. – mivoligo Aug 20 '12 at 13:17
up vote 2 down vote accepted

Finally I figured it out. My icon is in /data/media, so I used get_media_file from

from easy_stopwatch_lib.helpers import get_media_file

and then I did:

        Notify.init ("easy-stopwatch")
        icon = get_media_file("my-icon.svg")
        notification = ("Title", "some text here", icon) ()

and everything is working.

share|improve this answer

I don't know the code directly, but there is this app called Hello Unity that you can install that teaches you how to integrate with Unity, including Notification. You can install it from the .deb. The link is below.


Hope this helps!

share|improve this answer
Thanks for the link. I've looked at their code. Unfortunately I'm not able to understand how they made it working. – mivoligo Aug 20 '12 at 13:14

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.