How to get "command completed" terminal notifications in Fedora 41?

Now that the gnome-terminal no longer sends those notifications, I am wondering how to get the same behavior in Fedora 41?

This is after I found the discussion in How is the terminal's "notify when shell command finishes" feature implemented?

Basically, in Fedora 40, the gnome-terminal would by default send a notification once a full command line completed. However, the behavior was dropped from Fedora 41 in gnome-terminal.

As a workaround, I installed gnome-console. However, the console will send the notification for every sub-command, which can be noisy.

For example, sleep 3 && sleep 4 will send two notifications, but I only want one, like previously.

A workaround would be to use bash -c 'sleep 3 && sleep 4', but this seems tedious to type every time.

You could try ptyxis, which is now the default terminal in Gnome Shell. In my test (dnf installed ptyxis), your sleep command shows one notification.

1 Like