Ubuntu – How to add a custom image to notify-send


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/32×32 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?

Best Answer

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 must be absolute paths. /Home probably doesn't exist on your system.

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