mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
Help: Use unveil()
This commit is contained in:
parent
72d68b4025
commit
50f9d27d3b
1 changed files with 12 additions and 0 deletions
|
@ -62,6 +62,18 @@ int main(int argc, char* argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unveil("/res", "r") < 0) {
|
||||||
|
perror("unveil");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (unveil("/usr/share/man", "r") < 0) {
|
||||||
|
perror("unveil");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
unveil(nullptr, nullptr);
|
||||||
|
|
||||||
auto window = GWindow::construct();
|
auto window = GWindow::construct();
|
||||||
window->set_title("Help");
|
window->set_title("Help");
|
||||||
window->set_rect(300, 200, 570, 500);
|
window->set_rect(300, 200, 570, 500);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue