From 2cdc7c4ca07d2e86cad4b630f19d7713447a542d Mon Sep 17 00:00:00 2001 From: networkException Date: Tue, 2 Aug 2022 00:37:38 +0200 Subject: [PATCH] wallpaper: Add pledge promises --- Userland/Utilities/wallpaper.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Utilities/wallpaper.cpp b/Userland/Utilities/wallpaper.cpp index f3f28a2e883..f14e34c3afd 100644 --- a/Userland/Utilities/wallpaper.cpp +++ b/Userland/Utilities/wallpaper.cpp @@ -10,12 +10,15 @@ #include #include #include +#include #include #include #include ErrorOr serenity_main(Main::Arguments arguments) { + TRY(Core::System::pledge("stdio rpath unix sendfd recvfd")); + bool show_all = false; bool show_current = false; bool set_random = false; @@ -30,6 +33,8 @@ ErrorOr serenity_main(Main::Arguments arguments) auto app = TRY(GUI::Application::try_create(arguments)); + TRY(Core::System::pledge("stdio rpath unix sendfd")); + if (show_all) { Core::DirIterator wallpapers_directory_iterator("/res/wallpapers", Core::DirIterator::SkipDots); if (wallpapers_directory_iterator.has_error())