1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

WidgetGallery: Pledge thread

This is needed to use the file picker dialog.
This commit is contained in:
Marcus Nilsson 2021-07-17 15:01:29 +02:00 committed by Andreas Kling
parent 57fc6eb9be
commit 22611ca136

View file

@ -15,14 +15,14 @@
int main(int argc, char** argv)
{
if (pledge("stdio recvfd sendfd rpath unix", nullptr) < 0) {
if (pledge("stdio recvfd sendfd rpath unix thread", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
if (pledge("stdio recvfd sendfd rpath thread", nullptr) < 0) {
perror("pledge");
return 1;
}