1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:18:13 +00:00

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
parent 1080281e58
commit 0c98cde18e

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"));