mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-28 12:18:56 +00:00
Playground: Use pledge()
This commit is contained in:
parent
fb7cc4ec46
commit
7d72168b14
Notes:
sideshowbarker
2024-07-19 00:13:13 +09:00
Author: https://github.com/linusg
Commit: 7d72168b14
Pull-request: https://github.com/SerenityOS/serenity/pull/4731
1 changed files with 11 additions and 0 deletions
|
@ -166,7 +166,18 @@ private:
|
|||
|
||||
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);
|
||||
|
||||
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 window = GUI::Window::construct();
|
||||
window->set_title("GML Playground");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue