LibConfig: Rename pledge_domains(String) => pledge_domain(String)

pledge_domains() that takes only one String argument was specifically
added as a shortcut for pledging a single domain. So, it makes sense to
use singular here.
This commit is contained in:
Vitaly Dyachkov 2022-02-11 17:33:09 +01:00 committed by Andreas Kling
commit 32b8795091
Notes: sideshowbarker 2024-07-17 19:01:28 +09:00
27 changed files with 28 additions and 28 deletions

View file

@ -235,7 +235,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::pledge("stdio recvfd sendfd rpath wpath cpath unix"));
auto app = TRY(GUI::Application::try_create(arguments));
Config::pledge_domains("AudioApplet");
Config::pledge_domain("AudioApplet");
TRY(Core::System::unveil("/tmp/portal/audio", "rw"));
TRY(Core::System::unveil("/res", "r"));
TRY(Core::System::unveil(nullptr, nullptr));