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:
parent
585edb8cff
commit
d486560aee
3 changed files with 11 additions and 10 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue