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
commit 9e6d8f7c25
Notes: sideshowbarker 2024-07-18 05:07:41 +09:00
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;
}