Playground: Remove redundant pledge()

This commit is contained in:
bugreport0 2021-12-11 16:10:57 +01:00 committed by Andreas Kling
parent 595ebe215b
commit 2b47e1233b
Notes: sideshowbarker 2024-07-17 22:58:11 +09:00

View File

@ -65,8 +65,6 @@ 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));
TRY(Core::System::pledge("stdio thread recvfd sendfd rpath cpath wpath unix"));
TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_protocol("/usr/share/man/man1/Playground.md") }));
TRY(Desktop::Launcher::seal_allowlist());