diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index f04adc347..18bad2431 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -491,7 +491,7 @@ var AllView = new Lang.Class({ }, _loadApps() { - let apps = Shell.AppCache.get_default().get_all().filter(appInfo => { + let apps = Gio.AppInfo.get_all().filter(appInfo => { try { let id = appInfo.get_id(); // catch invalid file encodings } catch(e) { @@ -1321,7 +1321,7 @@ var FolderIcon = new Lang.Class({ folderApps.forEach(addAppId); let folderCategories = this._folder.get_strv('categories'); - Shell.AppCache.get_default().get_all().forEach(appInfo => { + Gio.AppInfo.get_all().forEach(appInfo => { let appCategories = _getCategories(appInfo); if (!_listsIntersect(folderCategories, appCategories)) return;