About: Use unveil()

This commit is contained in:
Andreas Kling 2020-01-21 12:12:07 +01:00
parent 39931733a5
commit 21886ff9e2
Notes: sideshowbarker 2024-07-19 09:55:15 +09:00

View File

@ -47,6 +47,13 @@ int main(int argc, char** argv)
return 1;
}
if (unveil("/res", "r") < 0) {
perror("unveil");
return 1;
}
unveil(nullptr, nullptr);
auto window = GWindow::construct();
window->set_title("About SerenityOS");
Rect window_rect { 0, 0, 240, 180 };