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
commit 22611ca136
Notes: sideshowbarker 2024-07-18 08:51:10 +09:00

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;
}