mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
FileSystemAccessServer: Port to LibMain :^)
This commit is contained in:
parent
32e05f9b14
commit
9d4c946515
Notes:
sideshowbarker
2024-07-18 00:49:41 +09:00
Author: https://github.com/awesomekling
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