From 0c98cde18e9e16e7c64afe5ff602d2409d951ec6 Mon Sep 17 00:00:00 2001 From: Cameron Youell Date: Wed, 5 Apr 2023 19:24:14 +1000 Subject: [PATCH] GMLPlayground: Pledge Calendar domain This now allows for the preview of `@GUI::Calendar` without crashing the whole program. --- Userland/DevTools/GMLPlayground/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/DevTools/GMLPlayground/main.cpp b/Userland/DevTools/GMLPlayground/main.cpp index e2323c71f6..8ff2819243 100644 --- a/Userland/DevTools/GMLPlayground/main.cpp +++ b/Userland/DevTools/GMLPlayground/main.cpp @@ -68,7 +68,7 @@ ErrorOr 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"));