mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibDesktop: Add support for RequiresRoot option to AppFile
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user