GMLPlayground: Pledge Calendar domain

This now allows for the preview of `@GUI::Calendar` without
crashing the whole program.
This commit is contained in:
Cameron Youell 2023-04-05 19:24:14 +10:00 committed by Sam Atkins
commit 0c98cde18e
Notes: sideshowbarker 2024-07-17 10:05:47 +09:00

View file

@ -68,7 +68,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::pledge("stdio thread recvfd sendfd cpath rpath wpath unix"));
auto app = TRY(GUI::Application::try_create(arguments));
Config::pledge_domain("GMLPlayground");
Config::pledge_domains({ "GMLPlayground", "Calendar" });
app->set_config_domain(TRY("GMLPlayground"_string));
TRY(Core::System::unveil("/res", "r"));