diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 21:18:40 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 21:33:12 +0100 |
commit | 7b6b1bae02312fd6f23577df8fa63a76130b055f (patch) | |
tree | 63de0a5ec91fa6393d6899931709a9f76c37795e /MenuApplets/Audio | |
parent | 457c7d9efd76c229a1230530a1b6d8c5d428b0bc (diff) | |
download | serenity-7b6b1bae02312fd6f23577df8fa63a76130b055f.zip |
MenuApplets: Use pledge()
Diffstat (limited to 'MenuApplets/Audio')
-rw-r--r-- | MenuApplets/Audio/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MenuApplets/Audio/main.cpp b/MenuApplets/Audio/main.cpp index ef240911ee..267cb5c6b3 100644 --- a/MenuApplets/Audio/main.cpp +++ b/MenuApplets/Audio/main.cpp @@ -49,8 +49,18 @@ private: int main(int argc, char** argv) { + if (pledge("stdio shared_buffer rpath unix cpath fattr", nullptr) < 0) { + perror("pledge"); + return 1; + } + GApplication app(argc, argv); + if (pledge("stdio shared_buffer rpath unix", nullptr) < 0) { + perror("pledge"); + return 1; + } + auto window = GWindow::construct(); window->set_has_alpha_channel(true); window->set_window_type(GWindowType::MenuApplet); |