Help: Fix crash when trying to load libunicodedata.so

This commit is contained in:
Rummskartoffel 2021-12-28 01:00:16 +01:00 committed by Linus Groh
parent 5bc7a18a04
commit 561b67a1ad
Notes: sideshowbarker 2024-07-17 22:05:25 +09:00

View file

@ -36,13 +36,14 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix"));
TRY(Core::System::pledge("stdio recvfd sendfd rpath unix prot_exec"));
auto app = TRY(GUI::Application::try_create(arguments));
TRY(Core::System::unveil("/res", "r"));
TRY(Core::System::unveil("/usr/share/man", "r"));
TRY(Core::System::unveil("/tmp/portal/launch", "rw"));
TRY(Core::System::unveil("/tmp/portal/webcontent", "rw"));
TRY(Core::System::unveil("/usr/lib/libunicodedata.so.serenity", "r"));
TRY(Core::System::unveil(nullptr, nullptr));
char const* start_page = nullptr;