mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
FileSystemAccessServer: Port to LibMain :^)
This commit is contained in:
parent
32e05f9b14
commit
9d4c946515
2 changed files with 5 additions and 7 deletions
|
@ -15,5 +15,5 @@ set(SOURCES
|
||||||
)
|
)
|
||||||
|
|
||||||
serenity_bin(FileSystemAccessServer)
|
serenity_bin(FileSystemAccessServer)
|
||||||
target_link_libraries(FileSystemAccessServer LibCore LibIPC LibGUI)
|
target_link_libraries(FileSystemAccessServer LibCore LibIPC LibGUI LibMain)
|
||||||
add_dependencies(FileSystemAccessServer WindowServer)
|
add_dependencies(FileSystemAccessServer WindowServer)
|
||||||
|
|
|
@ -5,17 +5,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <FileSystemAccessServer/ClientConnection.h>
|
#include <FileSystemAccessServer/ClientConnection.h>
|
||||||
#include <LibCore/EventLoop.h>
|
|
||||||
#include <LibCore/LocalServer.h>
|
#include <LibCore/LocalServer.h>
|
||||||
#include <LibGUI/Application.h>
|
#include <LibGUI/Application.h>
|
||||||
#include <LibIPC/ClientConnection.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) {
|
TRY(System::pledge("stdio recvfd sendfd rpath cpath wpath unix thread", nullptr));
|
||||||
perror("pledge");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto app = GUI::Application::construct(0, nullptr);
|
auto app = GUI::Application::construct(0, nullptr);
|
||||||
app->set_quit_when_last_window_deleted(false);
|
app->set_quit_when_last_window_deleted(false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue