LibDesktop+Taskbar: Add an option to exclude apps from the system menu

We currently hard-code excluding Settings apps from the system menu.
This adds an "ExcludeFromSystemMenu" option to the AppFile configuration
to selectively exclude these apps, which all Settings app now set.

This is to allow selectively excluding a few Demo apps in a future
commit.
This commit is contained in:
Timothy Flynn 2023-01-02 11:59:48 -05:00 committed by Andreas Kling
commit 3d6b0e60ca
Notes: sideshowbarker 2024-07-17 03:03:37 +09:00
13 changed files with 20 additions and 9 deletions

View file

@ -112,6 +112,11 @@ bool AppFile::requires_root() const
return m_config->read_bool_entry("App", "RequiresRoot", false);
}
bool AppFile::exclude_from_system_menu() const
{
return m_config->read_bool_entry("App", "ExcludeFromSystemMenu", false);
}
Vector<DeprecatedString> AppFile::launcher_mime_types() const
{
Vector<DeprecatedString> mime_types;