** Description changed:

- $ snap version 
- snap    2.42
- snapd   2.42
- series  16
- ubuntu  16.04
- kernel  4.15.0-15-generic
+ [Impact]
  
- $ snap list chromium 
- Name      Version       Rev  Tracking  Publisher   Notes
- chromium  78.0.3904.70  920  stable    canonical✓  -
+ Desktop files for snaps have the revision number in them for the Icon
+ desktop entry, e.g.:
  
+ --->
+ % grep Icon /var/lib/snapd/desktop/applications/firefox_firefox.desktop
+ Icon=/snap/firefox/7242/default256.png
+ <---
  
- After every upgrade which happens automatically with snap (which is great) 
launcher icon disappears and needed to be locked again after starting chromium 
after upgrade.
+ If the user makes a deep copy of that file, the icon will break once the
+ snap is updated enough that the revision at hand (7242) is evicted.
+ 
+ Snapd however does set up the 'current' soft link, which points to the
+ currently active revision of a given snap, e.g.:
+ 
+ % ls /snap/firefox/* -ld
+ drwxr-xr-x 7 root root 195 Okt 28 14:02 /snap/firefox/7180
+ drwxr-xr-x 7 root root 201 Nov  4 16:09 /snap/firefox/7242
+ lrwxrwxrwx 1 root root   4 Nov  5 15:42 /snap/firefox/current -> 7242
+ 
+ So we can simply replace the revision number by 'current' to fix this
+ issue.
+ 
+ [Test plan]
+ 
+ 0. Update Snapd to the version from the proposed pocket.[1]
+ 
+ 1. Confirm that the desktop file for a snap no longer contains the
+ revision number for the Icon entry, but rather 'current'. In the example
+ above, that would be:
+ 
+ --->
+ % grep Icon /var/lib/snapd/desktop/applications/firefox_firefox.desktop
+ Icon=/snap/firefox/current/default256.png
+ <---
+ 
+ 2. Make sure that the icon is still correctly displayed in your window
+ manager application's menu/panel, whatever that is.
+ 
+ [Where things could go wrong]
+ 
+ In the icon displaying for graphical snaps. Look out especially for a
+ generic icon instead of the application's icon; This should be accounted
+ for by step 2 of the test plan.
+ 
+ [1]https://wiki.ubuntu.com/Testing/EnableProposed

** Summary changed:

- [snap] Favourite entry for chromium disappears with every update
+ [SRU] Favourite entry for chromium disappears with every update

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1851490

Title:
  [SRU] Favourite entry for chromium disappears with every update

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1851490/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to