mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03: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: https://github.com/SerenityOS/serenity/commit/21886ff9e21
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user