diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-12 11:59:11 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-12 12:03:57 +0100 |
commit | f813bb52a28cfb42dcf73015e3ca659658c7d4d6 (patch) | |
tree | ce8424de020d7395d7ad0ed5d70f5a8c1f81da4a /Applications/FileManager | |
parent | 114a770c6fb5fb9a269b3b662375e0811dfd37e9 (diff) | |
download | serenity-f813bb52a28cfb42dcf73015e3ca659658c7d4d6.zip |
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" :^)
Diffstat (limited to 'Applications/FileManager')
-rw-r--r-- | Applications/FileManager/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp index 05edfee89e..d97c16156b 100644 --- a/Applications/FileManager/main.cpp +++ b/Applications/FileManager/main.cpp @@ -50,6 +50,11 @@ int main(int argc, char** argv) GApplication app(argc, argv); + if (pledge("stdio thread shared_buffer cpath rpath wpath fattr proc exec", nullptr) < 0) { + perror("pledge"); + return 1; + } + auto window = GWindow::construct(); window->set_title("File Manager"); |