Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd"

Now that WindowServer broadcasts the system theme using an anonymous
file, we need clients to pledge "recvfd" so they can receive it.

Some programs keep the "shared_buffer" pledge since it's still used for
a handful of things.
This commit is contained in:
Andreas Kling 2021-01-16 17:42:31 +01:00
commit d312011708
Notes: sideshowbarker 2024-07-18 23:10:53 +09:00
59 changed files with 112 additions and 111 deletions

View file

@ -174,7 +174,7 @@ int main(int argc, char** argv)
auto app = GUI::Application::construct(argc, argv);
auto app_icon = GUI::Icon::default_icon("app-mouse");
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
perror("pledge");
return 1;
}