yad notifications (https://sourceforge.net/p/yad-dialog/wiki/NotificationIcon/) like in this example are not displayed:
yad --notification --image="gtk-help" --command="echo 'Hello World'" --text="The notification's tooltip"
I guess it has to do with gnome shell. How can I show the yad notification?
GNOME Shell 3.34.1 Ubuntu 19.10
I used gnome tweaks to enable Ubuntu Appindicators to no effect.
The classical "system tray" where any application could create an icon has been deprecated in various desktops since 2010. See https://ubuntu.com/blog/notification-area. A more standard notification system has been retained, where applications could, through dbus, create a notification in the notification area that acts in a more standard way for all applications.
Up to version 2.26, Gnome had a "legacy tray" area as a pop out in the bottom corner that could host such icons. Then, Gnome Shell developpers got rid of it all together. Yet, Gnome ShellExtensions such as Topicons Plus and KStatusNotifierItem/AppIndicator Support (used also in Ubuntu desktop as the "Ubuntu appindicators" extension) brought these notification icons back to the topbar. However, application icons have disappeared.
yad
for its--notification
option may rely on the old mechanism that is now obsolete. Therefore, the option does not work anymore on Unity desktop or Gnome Shell, even with the KStatusNotifierItem/AppIndicator enabled.Still, the Excellent Gnome Shell extension Argos allows you to create interactive indicators in your top bar. Alternatively, use the notification system instead. In the shell, notifications can be created using
notify-send
.The gnome shell extension Topicons plus allow us to show icon from
yad --notification
https://extensions.gnome.org/extension/1031/topicons/