Automatically remove notifications when message has been read

When I receive an e-mail in Thunderbird or a chat message in Dino and Slack, the Gnome Shell shows a notification.

I open/switch to the application (without clicking on the notification), read the message - and the notification stays there in the shell. I have to manually remove the notification.

This is with Gnome Shell 48.7 on Debian 13.

Is this the way it has to be, or should notifications get removed automatically when I view the message in the application that sent the notification?

It is up to the applications to close notifications when they no longer apply. The shell has no way of knowing when you have read the message.

But there is a way for applications to close them?

Do you know which applications do this?

Dino:

Thunderbird:

  • Now in my test the notification was automatically removed when opening the corresponding account in Thunderbird. (Thunderbird 140.13.0esr)

Slack:

  • Desktop notifications stay after I read them in Slack.
  • I opened a support ticket with them.

Slack support replied:

Just to clarify, this is an expected behavior system notifications have to be manually cleared on Linux, Slack doesn’t support automatic clearing of desktop notifications once the message has been read.

I get that this differs from how Thunderbird and Dino handle it, but that’s simply how Slack’s Linux client currently manages notifications. Sorry we can’t help with this right now, but it’s the kind of thing that could be looked into down the line.