summaryrefslogtreecommitdiff
path: root/MenuApplets/Audio
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-11 21:18:40 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-11 21:33:12 +0100
commit7b6b1bae02312fd6f23577df8fa63a76130b055f (patch)
tree63de0a5ec91fa6393d6899931709a9f76c37795e /MenuApplets/Audio
parent457c7d9efd76c229a1230530a1b6d8c5d428b0bc (diff)
downloadserenity-7b6b1bae02312fd6f23577df8fa63a76130b055f.zip
MenuApplets: Use pledge()
Diffstat (limited to 'MenuApplets/Audio')
-rw-r--r--MenuApplets/Audio/main.cpp10
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);