diff options
author | Luke Wilde <lukew@serenityos.org> | 2021-08-28 15:05:10 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-28 23:29:28 +0200 |
commit | ea364af965410f1885584454a7df07757fa477ca (patch) | |
tree | 466a7fae5435073e351960c0413dd14138550893 /Userland/Applications/MailSettings | |
parent | 9e6d8f7c2580a513c435d360dcfb5848b4aa3622 (diff) | |
download | serenity-ea364af965410f1885584454a7df07757fa477ca.zip |
MailSettings: Add unveil
Diffstat (limited to 'Userland/Applications/MailSettings')
-rw-r--r-- | Userland/Applications/MailSettings/main.cpp | 10 |
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(); |