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

FileSystemAccessServer: Port to LibMain :^)

This commit is contained in:
Andreas Kling 2021-11-23 10:33:21 +01:00
parent 32e05f9b14
commit 9d4c946515
2 changed files with 5 additions and 7 deletions

View file

@ -5,17 +5,15 @@
*/
#include <FileSystemAccessServer/ClientConnection.h>
#include <LibCore/EventLoop.h>
#include <LibCore/LocalServer.h>
#include <LibGUI/Application.h>
#include <LibIPC/ClientConnection.h>
#include <LibMain/Main.h>
#include <LibSystem/Wrappers.h>
int main(int, char**)
ErrorOr<int> serenity_main(Main::Arguments)
{
if (pledge("stdio recvfd sendfd rpath cpath wpath unix thread", nullptr) < 0) {
perror("pledge");
return 1;
}
TRY(System::pledge("stdio recvfd sendfd rpath cpath wpath unix thread", nullptr));
auto app = GUI::Application::construct(0, nullptr);
app->set_quit_when_last_window_deleted(false);