MailSettings: Add unveil

This commit is contained in:
Luke Wilde 2021-08-28 15:05:10 +01:00 committed by Andreas Kling
parent 9e6d8f7c25
commit ea364af965
Notes: sideshowbarker 2024-07-18 05:07:38 +09:00

View file

@ -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();