Public bug reported: Unity needs to better handle .desktop files being renamed. Renamed .desktops are a problem because if a user has favorited an app, the app is no longer favorited when the .desktop changes its name.
A very large number of apps are renaming their .desktop files for better compatibility with flatpak. (For instance gedit.desktop is now org.gnome.gedit.desktop ) This has been handled for only a few apps with a hack: Ubuntu's gnome-pkg-tools provides /usr/bin/pkg-gnome-compat-desktop-file https://patches.ubuntu.com/g/gnome-pkg-tools/gnome-pkg-tools_0.19.7ubuntu1.patch See its use at the end of https://bazaar.launchpad.net/~ubuntu-desktop/gedit/ubuntu/view/head:/debian/rules#L35 The hack is insufficient because 1. Most GNOME apps are in sync with Debian. Debian doesn't have the pkg-gnome-compat-desktop-file script. It doesn't seem a good idea to make virtually all of GNOME be out of sync with Debian for this issue. 2. Its initial implementation has some flaws. See bug 1606901 and bug 1623748 The renaming has been handled in GNOME Shell with a remap table (dictionary): https://git.gnome.org/browse/gnome-shell/tree/js/ui/appFavorites.js I think it would be good if Unity did the same. Even GNOME Shell's remap table is a hack as there ought to be a better way of handling these renames but their hack works better than what Ubuntu has been doing. ** Affects: unity (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1662296 Title: Remap renamed .desktop files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1662296/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs