From 22611ca13667928e4f57795979027e87c1e66600 Mon Sep 17 00:00:00 2001 From: Marcus Nilsson Date: Sat, 17 Jul 2021 15:01:29 +0200 Subject: WidgetGallery: Pledge thread This is needed to use the file picker dialog. --- Userland/Demos/WidgetGallery/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Demos/WidgetGallery/main.cpp') diff --git a/Userland/Demos/WidgetGallery/main.cpp b/Userland/Demos/WidgetGallery/main.cpp index 2a8f71e785..4dae3b0d25 100644 --- a/Userland/Demos/WidgetGallery/main.cpp +++ b/Userland/Demos/WidgetGallery/main.cpp @@ -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; } -- cgit v1.2.3