1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

Mail: Use LibConfig instead of Core::ConfigFile

This also tightens the pledges.
This commit is contained in:
Luke Wilde 2021-08-28 15:01:59 +01:00 committed by Andreas Kling
parent 585edb8cff
commit d486560aee
3 changed files with 11 additions and 10 deletions

View file

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