How to display Gnome notification message

If you want to display a custom Gnome pop-up notification message from a shell script, just run:

  • notify-send "Hello world"



To create a full featured message dialog you may want to have a title, a message text and an icon.

You can refer to a standard icon by its name only (instead of the name of its image file), e.g.:

  • notify-send -i "stock_dialog-info" "Test" "This is a test"

On Mint 13 with MATE this uses icon image stock_dialog-info.png from directory /usr/share/icons/Mint-X/status/48

If you prefer, you can instead refer to icon by its full file name:

  • notify-send -i "/usr/share/icons/Mint-X/status/48/stock_dialog-info.png" "Test" "This is a test"

Using full file name lets you use icons from any other directory anywhere in your file system, e.g.:

  • notify-send -i "/usr/share/pixmaps/mdm-foot-logo.png" "Test" "This is a test"

If copy+paste of this examples does not work as expected, just retype it to avoid interference of HTML formatting.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.