forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agentnotify: show the snap icon when autorefresh is done (canonical#1…
…3486) * agentnotify: show the snap icon when autorefresh is done When an application has to be closed by the user to allow to do and autorefresh, the notification has the application icon. But when the autorefresh has been completed, the notification has the snapcraft icon instead. This MR fixes this. With it, the notification specifying that the snap has been successfully refreshed and that it can be relaunched shows the application's icon. Fix https://warthogs.atlassian.net/browse/UDENG-2030 * Fix .desktop file name generation * Use an heuristic to determine the desktop file * Move all the logic to the user-space daemon * Don't fail if ReadCurrentInfo fails Also, really take the first icon found, and not the last one. * Moved code into function and added tests * Update usersession/agent/rest_api.go Co-authored-by: Maciej Borzecki <maciek.borzecki@gmail.com> * Update usersession/agent/rest_api.go Co-authored-by: Maciej Borzecki <maciek.borzecki@gmail.com> * Extra changes requested by reviewers * Add extra test * Extra changes requested * Update usersession/agent/rest_api_test.go Co-authored-by: Maciej Borzecki <maciek.borzecki@gmail.com> * Some style patches --------- Co-authored-by: Maciej Borzecki <maciek.borzecki@gmail.com>
- Loading branch information
1 parent
1ebfd19
commit 3a571c1
Showing
4 changed files
with
192 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters