diff --git a/Userland/Games/GameOfLife/main.cpp b/Userland/Games/GameOfLife/main.cpp index 30f627fb76..03f156bf93 100644 --- a/Userland/Games/GameOfLife/main.cpp +++ b/Userland/Games/GameOfLife/main.cpp @@ -18,12 +18,34 @@ #include #include #include +#include const char* click_tip = "Tip: click the board to toggle individual cells, or click+drag to toggle multiple cells"; int main(int argc, char** argv) { + if (pledge("stdio rpath recvfd sendfd unix", nullptr) < 0) { + perror("pledge"); + return 1; + } + auto app = GUI::Application::construct(argc, argv); + + if (pledge("stdio rpath recvfd sendfd", nullptr) < 0) { + perror("pledge"); + return 1; + } + + if (unveil("/res", "r") < 0) { + perror("unveil"); + return 1; + } + + if (unveil(nullptr, nullptr) < 0) { + perror("unveil"); + return 1; + } + auto app_icon = GUI::Icon::default_icon("app-gameoflife"); auto window = GUI::Window::construct();