-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Udeng 2282 refresh awareness implement new scheme #76
Udeng 2282 refresh awareness implement new scheme #76
Conversation
2a2dd65
to
8fa4edd
Compare
5c5c3fa
to
0e68cbd
Compare
@robert-ancell Should I add support for FreeDesktop.org notifications, or it should be enough with the gnome ones? |
Isn't Gio.Notification doing this for you? You don't seem to be making any explicit fdo/gnome notification calls that I can see. |
I don't know if Gio.Notification does abstract up to that point... I'll try to do some tests. |
You are right: it is supported. So nothing to do there, then. Thanks! |
This patch implements the new Refresh Awareness system. It requires several patches to snapd which, at the moment of sending this, are still awaiting for being merged; but this code has several failsafes to ensure that it does work with the current snapd, although without some bells nor whisels (specifically, neither application icon nor application "cute" name).
ca2c692
to
a986672
Compare
@robert-ancell This is ready, with the exception of an icon for the application itself (because the notifications show the application icon too, in the top-left corner). |
Also, it is "compatible" with the current snapd version. This is: it won't be as "cute" as it will be when all the patches have landed in snapd, but it works. It doesn't show the application icon or the "visible name", and the "application is ready" notification is shown twice, but it works. |
Also, the |
Yes, if it can be removed now do it an make a second PR to add it. |
Not a full review, we can go over again next week. |
These lines aren't required in the .desktop file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor notes, I'll leave it to you to decide if they're worth changing. (feel free to merge when you're ready).
The change is large, so I'm not 100% confident my review is exhaustive - hopefully no major issues in here!
Done the changes. But I can't merge it, I don't have permissions. |
Anyway, there are two things remaining. |
Ok, ping me when you're ready to merge. |
During startup, the daemon receives all the old events, so spurious dialogs can appear. To avoid this, those old events are ignored.
@robert-ancell I think that it's better to merge this one, and do those other changes in different PRs, so please, merge this one when you have some spare time. |
Implements the new Refresh Awareness protocol.
DONE:
api-snaps: add refresh-observe access to /v2/snaps/{name} snapd#13931
interfaces: give priority to desktop-launch over desktop-legacy snapd#13933
notify: Dont send refresh complete notification if snap refresh observe is connected snapd#13936
TO DO: