mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
MailSettings: Add unveil
This commit is contained in:
parent
9e6d8f7c25
commit
ea364af965
Notes:
sideshowbarker
2024-07-18 05:07:38 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/ea364af9654 Pull-request: https://github.com/SerenityOS/serenity/pull/9663
1 changed files with 10 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue