Public bug reported:

# grep -r firefox /usr/share/applications
ubuntu.layout:launcher-location=/usr/share/applications/firefox.desktop
ubuntu-mate.layout:launcher-location=/var/lib/snapd/desktop/applications/firefox_firefox.desktop
....

This means that if someone has firefox.snap installed, they'll see it in the 
panel if they select ubuntu-mate.layout, but not ubuntu.layout.
The opposite will happen if someone has firefox.deb installed.

Please use something like `launcher-location=firefox.desktop` instead,
and handle the snap-specific paths in the code, so that end users see
the panel applications whether they use .debs or .snaps.

E.g. currently if a school installs firefox.deb instead of firefox.snap,
each student will need to manually add firefox to their panel.


An alternative idea would be to use "generic-browser", "generic-mailer" icons, 
and launch "sensible-browser" or "xdg-open ..." instead, but that would be a 
bigger change, not appropriate so close to the 22.04 release.

** Affects: mate-panel (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  # grep -r firefox /usr/share/applications
  ubuntu.layout:launcher-location=/usr/share/applications/firefox.desktop
  
ubuntu-mate.layout:launcher-location=/var/lib/snapd/desktop/applications/firefox_firefox.desktop
  ....
  
  This means that if someone has firefox.snap installed, they'll see it in the 
panel if they select ubuntu-mate.layout, but not ubuntu.layout.
  The opposite will happen if someone has firefox.deb installed.
  
  Please use something like `launcher-location=firefox.desktop` instead,
  and handle the snap-specific paths in the code, so that end users see
  the panel applications whether they use .debs or .snaps.
  
  E.g. currently if a school installs firefox.deb instead of firefox.snap,
  each student will need to manually add firefox to their panel.
+ 
+ 
+ An alternative idea would be to use "generic-browser", "generic-mailer" 
icons, and launch "sensible-browser" or "xdg-open ..." instead, but that would 
be a bigger change, not appropriate so close to the 22.04 release.

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

Title:
  Don't hardcode snap.desktop launcher locations

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mate-panel/+bug/1967739/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to