From 2bc4215d1d04abc2e92de648d76eab05bd405bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 5 Sep 2023 17:08:38 +0200 Subject: [PATCH] status/backgroundApps: Filter out unknown apps While extremely rare, flatpak apps are not guaranteed to provide a .desktop file. We don't have anything to represent the app in that case, but at least we shouldn't break when trying to access properties on null, so filter out these entries. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6913 Part-of: --- js/ui/status/backgroundApps.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/status/backgroundApps.js b/js/ui/status/backgroundApps.js index d6f2e495b..fb457ae2d 100644 --- a/js/ui/status/backgroundApps.js +++ b/js/ui/status/backgroundApps.js @@ -226,6 +226,7 @@ class BackgroundAppsToggle extends QuickToggle { return {app, message}; }) + .filter(item => !!item.app) .sort((a, b) => { return a.app.get_name().localeCompare(b.app.get_name()); })