[gnome-shell/wip/rstrode/rhel-7.9: 61/86] appDisplay: Use GAppInfo list from ShellAppSystem
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/rhel-7.9: 61/86] appDisplay: Use GAppInfo list from ShellAppSystem
- Date: Fri, 12 Feb 2021 19:04:07 +0000 (UTC)
commit 8514e85e508d8f46e684c6831d47287aed6783da
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Dec 19 13:26:54 2018 +0100
appDisplay: Use GAppInfo list from ShellAppSystem
It is now cached there, so the number of g_app_info_get_all() calls
is reduced to one per change.
js/ui/appDisplay.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index c409c46637..e191bed582 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -503,7 +503,7 @@ var AllView = new Lang.Class({
},
_loadApps() {
- this._appInfoList = Gio.AppInfo.get_all().filter(appInfo => {
+ this._appInfoList = Shell.AppSystem.get_default().get_installed().filter(appInfo => {
try {
let id = appInfo.get_id(); // catch invalid file encodings
} catch(e) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]