1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

LibDesktop: Add support for RequiresRoot option to AppFile

This commit is contained in:
ne0ndrag0n 2022-10-03 20:08:34 -04:00 committed by Linus Groh
parent b4456ecdbb
commit 7fc22896ee
2 changed files with 6 additions and 0 deletions

View file

@ -102,6 +102,11 @@ bool AppFile::run_in_terminal() const
return m_config->read_bool_entry("App", "RunInTerminal", false);
}
bool AppFile::requires_root() const
{
return m_config->read_bool_entry("App", "RequiresRoot", false);
}
Vector<String> AppFile::launcher_mime_types() const
{
Vector<String> mime_types;