Snap doesn't refresh automatically immediately after snap is quit when update is pending
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Committed
|
Undecided
|
Miguel Pires | ||
firefox (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Impact / What Currently Happens
-------
Many people open their chosen web browser (Firefox or Chromium) immediately after logging in and keep the app running continuously.
Eventually, there will be a snap update available. The system notifies that there is a pending update and to "Close the app to avoid notifications."
Most people will eventually close the app, but the pending update is not applied until the next snap refresh is attempted which could be hours away.
This is a frustrating experience because it feels like the notification is not helpful.
I think many users would prefer the snap to just update silently in the background with little or no notification.
Test Case
---------
From Ubuntu 22.04 LTS with the Firefox snap installed by default
Keep Firefox running
Wait for a new Firefox release (happens at least monthly)
Receive a notification about a pending update for Firefox
Close Firefox
Wait a few minutes
Open Firefox
Workaround
----------
Close the app that needs to be updated
Open a terminal and run this command:
snap refresh
Other Info
----------
This issue was mentioned in the original post and in the first comment at
https:/
Suggested Mitigation
-------
Would it help to run a `snap refresh` immediately after Ubuntu is booted?
Changed in snapd: | |
assignee: | nobody → Olivier Tilloy (osomon) |
assignee: | Olivier Tilloy (osomon) → nobody |
Changed in snapd: | |
assignee: | nobody → Sergio Costas (rastersoft-gmail) |
This PR https:/ /github. com/snapcore/ snapd/pull/ 11912 disables the refresh- app-awareness so that the running app doesn't block the refresh. This doesn't fix the issue mentioned here but it's related.