[gnome-shell/eos3.8: 125/255] appFavorites: respect X-Endless-Alias and X-Flatpak-RenamedFrom
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/eos3.8: 125/255] appFavorites: respect X-Endless-Alias and X-Flatpak-RenamedFrom
- Date: Wed, 10 Jun 2020 19:08:29 +0000 (UTC)
commit fc268ac0a74e872140a156b0cf1001f757cbb1e3
Author: Will Thompson <will willthompson co uk>
Date: Fri Sep 21 09:32:07 2018 +0100
appFavorites: respect X-Endless-Alias and X-Flatpak-RenamedFrom
Previously, we handled renamed apps on the icon grid, but not on the
taskbar.
There is some clear overlap with the RENAMED_DESKTOP_IDS in this file,
which is inherited from upstream;
https://gitlab.gnome.org/GNOME/gnome-shell/issues/593 filed to discuss
upstreaming our approach.
https://phabricator.endlessm.com/T22596
js/ui/appFavorites.js | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/js/ui/appFavorites.js b/js/ui/appFavorites.js
index 29a140aacc..fbfd7603ee 100644
--- a/js/ui/appFavorites.js
+++ b/js/ui/appFavorites.js
@@ -88,6 +88,11 @@ class AppFavorites {
updated = true;
return newId;
}
+ let newApp = appSys.lookup_alias(id);
+ if (newApp && newApp.get_id() !== id) {
+ updated = true;
+ return newApp.get_id();
+ }
return id;
});
// ... and write back the updated desktop file names
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]