How to disable notifications for a specific application?

I recently installed the native Linux Spotify client on my Ubuntu 14.04, which works like a charm. The only thing that really really annoys me is that I get a notification for each new song that starts (so every couple minutes) which totally disturbes me in my work.

There doesn't seem to be an option to hide the notifications in the Spotify client, so I tried looking for a solution to disable notifications for a specific application. Searching around brought me to this AskUbuntu answer, but that only deals with changing colors of the notification or completely disabling them.

So my question; does anybody know of an application that can disable notifications for a specific application? All tips are welcome!


(For context, I visited this question a while after original post)

The quickest way to disable notifications from Spotify only is to go to your account settings (on Linux Mint, open the dropdown menu in the top right where your name is, and select settings).

Scroll down until you the see "Display Options" section. One of the switches will say "Show Desktop notifications when song changes" and click on the switch. This will turn off the notifications.

Note

I would have preferred a solution that only mutes the notifications. I want to see the notification, but I don't want to hear it.

But this is good enough for me, a simple Alt+Tab isn't going to kill me.


This blog had the answer for Spotify (this was annoying me for ages): https://lassekarstensen.wordpress.com/2014/06/27/disable-spotify-song-change-notification-in-debian-linux/

vi `find ~/.config/spotify/Users/ -name prefs`

add

ui.track_notifications_enabled=false

You can go in "Settings" and under "Notifications", you will see in the list "Spotify", disable what you don't want (I only kept what relate to "Lock Screen" in my case), close that window, exit Spotify and restart it, you should get rid of the anoying track alerts.