mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2938>
This commit is contained in:
parent
8ece56b5c2
commit
2bc4215d1d
1 changed files with 1 additions and 0 deletions
|
|
@ -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());
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue