mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Applications+DevTools+MenuApplets: Drop "unix" pledge when possible
Now that the "unix" pledge is no longer required for socket I/O, we can drop it after making the connections we need in a program. In most GUI program cases, once we've connected to the WindowServer by instantiating a GApplication, we no longer need "unix" :^)
This commit is contained in:
@@ -103,6 +103,11 @@ int main(int argc, char** argv)
|
||||
|
||||
GApplication app(argc, argv);
|
||||
|
||||
if (pledge("stdio tty rpath cpath wpath shared_buffer proc fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Function<void()> update_actions;
|
||||
|
||||
g_window = GWindow::construct();
|
||||
|
||||
Reference in New Issue
Block a user