diff options
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); |