mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 11:48:59 +00:00
About: Use unveil()
This commit is contained in:
parent
39931733a5
commit
21886ff9e2
Notes:
sideshowbarker
2024-07-19 09:55:15 +09:00
Author: https://github.com/awesomekling
Commit: 21886ff9e2
1 changed files with 7 additions and 0 deletions
|
@ -47,6 +47,13 @@ int main(int argc, char** argv)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unveil("/res", "r") < 0) {
|
||||||
|
perror("unveil");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
unveil(nullptr, nullptr);
|
||||||
|
|
||||||
auto window = GWindow::construct();
|
auto window = GWindow::construct();
|
||||||
window->set_title("About SerenityOS");
|
window->set_title("About SerenityOS");
|
||||||
Rect window_rect { 0, 0, 240, 180 };
|
Rect window_rect { 0, 0, 240, 180 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue