mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 07:07:49 +00:00
MailSettings: Use LibConfig instead of Core::ConfigFile
This also tightens the pledges.
This commit is contained in:
parent
173ba4e19b
commit
9e6d8f7c25
Notes:
sideshowbarker
2024-07-18 05:07:41 +09:00
Author: https://github.com/Lubrsi
Commit: 9e6d8f7c25
Pull-request: https://github.com/SerenityOS/serenity/pull/9663
4 changed files with 15 additions and 30 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue