diff --git a/Userland/Services/FileSystemAccessServer/CMakeLists.txt b/Userland/Services/FileSystemAccessServer/CMakeLists.txt index 9bcce5ee1a..e07afbe0d1 100644 --- a/Userland/Services/FileSystemAccessServer/CMakeLists.txt +++ b/Userland/Services/FileSystemAccessServer/CMakeLists.txt @@ -15,5 +15,5 @@ set(SOURCES ) serenity_bin(FileSystemAccessServer) -target_link_libraries(FileSystemAccessServer LibCore LibIPC LibGUI) +target_link_libraries(FileSystemAccessServer LibCore LibIPC LibGUI LibMain) add_dependencies(FileSystemAccessServer WindowServer) diff --git a/Userland/Services/FileSystemAccessServer/main.cpp b/Userland/Services/FileSystemAccessServer/main.cpp index 484ac595e4..cbf295dcb3 100644 --- a/Userland/Services/FileSystemAccessServer/main.cpp +++ b/Userland/Services/FileSystemAccessServer/main.cpp @@ -5,17 +5,15 @@ */ #include -#include #include #include #include +#include +#include -int main(int, char**) +ErrorOr 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);