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:
parent
32e05f9b14
commit
9d4c946515
2 changed files with 5 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue