From 794a0568192dfc6581117dd5eceb5b0cec54d68c Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 19 Dec 2018 13:26:54 +0100 Subject: [PATCH] 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 3a7c74897..b8865cf2c 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -492,7 +492,7 @@ var AllView = class AllView extends BaseAppView { } _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) {