Revert "appDisplay: use ShellAppCache to access GAppInfo"

This reverts commit cfb92ad392.
This commit is contained in:
Christian Hergert 2020-02-26 23:43:00 -08:00
parent cfb92ad392
commit 4e22989f07

View File

@ -491,7 +491,7 @@ var AllView = new Lang.Class({
}, },
_loadApps() { _loadApps() {
let apps = Shell.AppCache.get_default().get_all().filter(appInfo => { let apps = Gio.AppInfo.get_all().filter(appInfo => {
try { try {
let id = appInfo.get_id(); // catch invalid file encodings let id = appInfo.get_id(); // catch invalid file encodings
} catch(e) { } catch(e) {
@ -1321,7 +1321,7 @@ var FolderIcon = new Lang.Class({
folderApps.forEach(addAppId); folderApps.forEach(addAppId);
let folderCategories = this._folder.get_strv('categories'); 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); let appCategories = _getCategories(appInfo);
if (!_listsIntersect(folderCategories, appCategories)) if (!_listsIntersect(folderCategories, appCategories))
return; return;