How can I show application progress in a dock icon?
My native GTK3 application which runs on Ubuntu has an icon that appears in the the Ubuntu dock when the application is running. The application preforms a task and displays a progress bar.
Is there a API or Ubuntu dbus interface that my application should send messages to, in order to also show the progress overlaid on its icon in the dock?
Nautilus is a good example of what I want to achieve. While copying files in Nautilus, the Nautilus icon in the Ubuntu dock has an overlay icon that shows the progress of the copy process:
Note: I expect this to work on Ubuntu 20.04. (But it would be nice if it also works in 18.04 LTS, although I don't remember if 18.04 supported this capability).