summaryrefslogtreecommitdiff
path: root/Userland/Applications/Mail/main.cpp
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2021-08-28 15:01:59 +0100
committerAndreas Kling <kling@serenityos.org>2021-08-28 23:29:28 +0200
commitd486560aeec97cdc68e8f283ce8c19555c36c81a (patch)
tree0ed1a1a9f6bb75b195c156b77e1f08f0403fff3d /Userland/Applications/Mail/main.cpp
parent585edb8cff5451cfeb057fe8c3317712965d89b6 (diff)
downloadserenity-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.cpp5
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");