1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 00:15:08 +00:00

Help: Use unveil()

This commit is contained in:
Andreas Kling 2020-01-21 22:09:12 +01:00
parent 72d68b4025
commit 50f9d27d3b

View file

@ -62,6 +62,18 @@ int main(int argc, char* argv[])
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();
window->set_title("Help");
window->set_rect(300, 200, 570, 500);