diff options
author | Luke Wilde <lukew@serenityos.org> | 2021-08-28 15:01:59 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-28 23:29:28 +0200 |
commit | d486560aeec97cdc68e8f283ce8c19555c36c81a (patch) | |
tree | 0ed1a1a9f6bb75b195c156b77e1f08f0403fff3d /Userland/Applications/Mail/main.cpp | |
parent | 585edb8cff5451cfeb057fe8c3317712965d89b6 (diff) | |
download | serenity-d486560aeec97cdc68e8f283ce8c19555c36c81a.zip |
Mail: Use LibConfig instead of Core::ConfigFile
This also tightens the pledges.
Diffstat (limited to 'Userland/Applications/Mail/main.cpp')
-rw-r--r-- | Userland/Applications/Mail/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Applications/Mail/main.cpp b/Userland/Applications/Mail/main.cpp index 4532de314b..c6f8f01e2e 100644 --- a/Userland/Applications/Mail/main.cpp +++ b/Userland/Applications/Mail/main.cpp @@ -5,6 +5,7 @@ */ #include "MailWidget.h" +#include <LibConfig/Client.h> #include <LibGUI/Application.h> #include <LibGUI/Icon.h> #include <LibGUI/Menu.h> @@ -15,13 +16,15 @@ int main(int argc, char** argv) { - if (pledge("stdio recvfd sendfd rpath unix cpath wpath thread inet", nullptr) < 0) { + if (pledge("stdio recvfd sendfd rpath unix inet", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); + Config::pledge_domains("Mail"); + auto window = GUI::Window::construct(); auto app_icon = GUI::Icon::default_icon("app-mail"); |