1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

MailSettings: Use LibConfig instead of Core::ConfigFile

This also tightens the pledges.
This commit is contained in:
Luke Wilde 2021-08-28 15:04:51 +01:00 committed by Andreas Kling
parent 173ba4e19b
commit 9e6d8f7c25
4 changed files with 15 additions and 30 deletions

View file

@ -5,20 +5,23 @@
*/
#include "MailSettingsWindow.h"
#include <LibConfig/Client.h>
#include <LibGUI/Application.h>
#include <LibGUI/Icon.h>
#include <unistd.h>
int main(int argc, char** argv)
{
if (pledge("stdio rpath cpath wpath recvfd sendfd unix", nullptr) < 0) {
if (pledge("stdio rpath recvfd sendfd unix", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
if (pledge("stdio rpath cpath wpath recvfd sendfd", nullptr) < 0) {
Config::pledge_domains("Mail");
if (pledge("stdio rpath recvfd sendfd", nullptr) < 0) {
perror("pledge");
return 1;
}