mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:07:44 +00:00
Playground: Use pledge()
This commit is contained in:
parent
fb7cc4ec46
commit
7d72168b14
1 changed files with 11 additions and 0 deletions
|
@ -166,7 +166,18 @@ private:
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
if (pledge("stdio thread shared_buffer accept cpath rpath wpath unix fattr", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
auto app = GUI::Application::construct(argc, argv);
|
auto app = GUI::Application::construct(argc, argv);
|
||||||
|
|
||||||
|
if (pledge("stdio thread shared_buffer accept rpath cpath wpath", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
auto app_icon = GUI::Icon::default_icon("app-playground");
|
auto app_icon = GUI::Icon::default_icon("app-playground");
|
||||||
auto window = GUI::Window::construct();
|
auto window = GUI::Window::construct();
|
||||||
window->set_title("GML Playground");
|
window->set_title("GML Playground");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue