1

I can see a lot of Elementary Apps in the notification settings, and I know that I can hide the notifications for those apps. But what about the other apps grouped in the category "Other"? Can I hide the notifications for 1 specific app without hiding the rest of "Other" apps?

I specifically want to hide Spotify notifications, but if there is a generic solution this could help a lot of people.

6

elementary relies on applications notifying the OS that they want to use notifications by setting a property in their .desktop file. Applications not built/controlled by elementary are not guaranteed to do this

You can add the following line to the bottom of the .desktop file for the application in question and it should show up in the notifications settings so you can configure it like the elementary applications.

X-GNOME-UsesNotifications=true

For example, my /usr/share/applications/spotify.desktop file looks like this:

[Desktop Entry]
Name=Spotify
GenericName=Music Player
Comment=Spotify streaming music client
Icon=spotify-client
Exec=spotify %U
TryExec=spotify
Terminal=false
Type=Application
Categories=Audio;Music;Player;AudioVideo;
MimeType=x-scheme-handler/spotify;
X-GNOME-UsesNotifications=true

And my notification settings now have the Spotify application as a configurable notifications source: enter image description here

This is not guaranteed to be a permanent fix, as the application in question may overwrite its .desktop file during updates, etc...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.