canonical / snapd-desktop-integration

User session helpers for snapd
GNU General Public License v3.0
15 stars 10 forks source link

DT-954: add percentage support #44

Closed sergio-costas closed 1 year ago

sergio-costas commented 1 year ago

This MR adds two new DBus methods that allow to set a percentage value in the progress bar, or set again the pulsing bar.

This will be useful to give to the user more info about how the snap download is going.

hellsworth commented 1 year ago

TLDR; This change looks great to me!

I've built and installed this snapd-desktop-integration. Note that to install it I needed to set experimental.user-daemons=true.

$ sudo snap set system experimental.user-daemons=true
$ sudo snap install snapd-desktop-integration_0.1_amd64.snap --dangerous

Then using d-feet, under the "Session Bus", I was able to send strings to a few different key components: image

To close the pop-up, I opened a window again for ApplicationRefreshCompleted: "firefox", {} and Execute makes the window close as expected.