Score:2

How to show progress in dock icon?

us flag

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:

Nautilus icon in the dock with progress overlay

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).

Score:0
cn flag

The Dash of Gnome Shell currently has no API to allow displaying progress bars. It would not make sense with the default setup of Gnome, where the Dash is only visible when actively summoned in the Activities or Applications view, but would obviously make sense in extensions like Dash to Dock. This is discussed in this old issue report.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.