diff --git a/Applications/Welcome/main.cpp b/Applications/Welcome/main.cpp index 70ebd5b724..58b8cf0611 100644 --- a/Applications/Welcome/main.cpp +++ b/Applications/Welcome/main.cpp @@ -34,6 +34,8 @@ #include #include #include +#include +#include #include "BackgroundWidget.h" #include "TextWidget.h" @@ -85,8 +87,24 @@ int main(int argc, char** argv) }, }; + if (pledge("stdio shared_buffer rpath unix cpath fattr", nullptr) < 0) { + perror("pledge"); + return 1; + } + GUI::Application app(argc, argv); + if (pledge("stdio shared_buffer rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + + if (unveil("/res/fonts", "r") < 0) { + perror("unveil"); + return 1; + } + unveil(nullptr, nullptr); + auto window = GUI::Window::construct(); window->set_title("Welcome to Serenity"); Gfx::Rect window_rect { 0, 0, 640, 360 };