data: Add X-GNOME-Shell-Utilities.directory file to allow showing real name

Instead of having the name of the directory be X-GNOME-Utilities. This
also allows translating the name to the user's language. The name is
chose to be different to X-GNOME-Utilities from GNOME Menus.

In the process, also remove the categories. The menu definition from
gnome-menus is not used, and it's not a category that apps list
themselves, so it's completely unused anyway.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3526>
This commit is contained in:
Pablo Correa Gómez
2024-10-23 17:35:21 +02:00
committed by Pablo Correa Gómez
parent 6f280c8d7f
commit 152faae6f9
4 changed files with 16 additions and 3 deletions

View File

@ -58,8 +58,7 @@ const DIALOG_SHADE_HIGHLIGHT = new Cogl.Color({red: 0, green: 0, blue: 0, alpha:
const DEFAULT_FOLDERS = {
'Utilities': {
name: 'X-GNOME-Utilities.directory',
categories: ['X-GNOME-Utilities'],
name: 'X-GNOME-Shell-Utilities.directory',
apps: [
'gnome-abrt.desktop',
'gnome-system-log.desktop',
@ -1446,7 +1445,8 @@ class AppDisplay extends BaseAppView {
});
child.set_string('name', name);
child.set_boolean('translate', true);
child.set_strv('categories', categories);
if (categories)
child.set_strv('categories', categories);
if (apps)
child.set_strv('apps', apps);
}