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

In notify-send I know that -i can be used to add a stock image to the notification, but how can I add my own custom image? I have gone into usr/share/icons/gnome/32x32 where notify-send pulls from, but it won't show any image at all. Is it possible to include an image other than the stock images?

share|improve this question
up vote 6 down vote accepted

You need to tell it where to find the icon, like

notify-send -i /usr/share/icons/gnome/32x32/status/stock_lock-broken.png  summary test

And of course you can use your own icon too, not only the default ones.

For using an icon from your own home directory you would use one of

notify-send -i ~/pictures/picture-name.png summary test
notify-send -i /home/<yourusername>/pictures/picture-name.png summary test

Remember: names are case sensitive and paths should have a definite starting point. /Home probably doesn't exist on your system.

man notify-send will tell you about other options too.

share|improve this answer
Thank you for this. I must have been messing up the path somewhere. I know that it's best to store these icons on the file system, but if I had my icons stored in home/pictures, would the code be notify-send -i /Home/Pictures/picture-name.png summary test – Lmuller18 Sep 29 '13 at 22:21
@Lmuller18: Not quite - see my updated answer please. – guntbert Sep 30 '13 at 17:28

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.