summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-01-21 12:12:07 +0100
committerAndreas Kling <kling@serenityos.org>2020-01-21 12:12:07 +0100
commit21886ff9e2117329466cb1ec418da7a19f2809c2 (patch)
tree1787e958bb38507826e269602579fb5b8b58f651 /Applications
parent39931733a52ec72ad905a363225efb895775262f (diff)
downloadserenity-21886ff9e2117329466cb1ec418da7a19f2809c2.zip
About: Use unveil()
Diffstat (limited to 'Applications')
-rw-r--r--Applications/About/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Applications/About/main.cpp b/Applications/About/main.cpp
index 05f84ce99a..55753b3b17 100644
--- a/Applications/About/main.cpp
+++ b/Applications/About/main.cpp
@@ -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 };