From ea364af965410f1885584454a7df07757fa477ca Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Sat, 28 Aug 2021 15:05:10 +0100 Subject: MailSettings: Add unveil --- Userland/Applications/MailSettings/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Userland/Applications/MailSettings') 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(); -- cgit v1.2.3