summaryrefslogtreecommitdiff
path: root/Userland/Applications/MailSettings
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2021-08-28 15:05:10 +0100
committerAndreas Kling <kling@serenityos.org>2021-08-28 23:29:28 +0200
commitea364af965410f1885584454a7df07757fa477ca (patch)
tree466a7fae5435073e351960c0413dd14138550893 /Userland/Applications/MailSettings
parent9e6d8f7c2580a513c435d360dcfb5848b4aa3622 (diff)
downloadserenity-ea364af965410f1885584454a7df07757fa477ca.zip
MailSettings: Add unveil
Diffstat (limited to 'Userland/Applications/MailSettings')
-rw-r--r--Userland/Applications/MailSettings/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Applications/MailSettings/main.cpp b/Userland/Applications/MailSettings/main.cpp
index cebbbe2639..fe3efae3d2 100644
--- a/Userland/Applications/MailSettings/main.cpp
+++ b/Userland/Applications/MailSettings/main.cpp
@@ -26,6 +26,16 @@ int main(int argc, char** argv)
return 1;
}
+ if (unveil("/res", "r") < 0) {
+ perror("unveil");
+ return 1;
+ }
+
+ if (unveil(nullptr, nullptr)) {
+ perror("unveil");
+ return 1;
+ }
+
auto app_icon = GUI::Icon::default_icon("app-mail");
auto window = MailSettingsWindow::construct();