/* * Copyright (c) 2021, timmot * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include #include int main(int, char**) { if (pledge("stdio recvfd sendfd rpath cpath wpath unix thread", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(0, nullptr); app->set_quit_when_last_window_deleted(false); auto socket = Core::LocalSocket::take_over_accepted_socket_from_system_server(); IPC::new_client_connection(socket.release_nonnull(), 1); return app->exec(); }