Serenity Operating System
at master 24 lines 671 B view raw
1/* 2 * Copyright (c) 2021, Nick Vella <nick@nxk.io> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#include "RunWindow.h" 8#include <LibCore/System.h> 9#include <LibGUI/Application.h> 10#include <LibGUI/Desktop.h> 11#include <LibMain/Main.h> 12 13ErrorOr<int> serenity_main(Main::Arguments arguments) 14{ 15 TRY(Core::System::pledge("stdio recvfd sendfd thread cpath rpath wpath unix proc exec")); 16 17 auto app = TRY(GUI::Application::try_create(arguments)); 18 auto window = TRY(RunWindow::try_create()); 19 20 window->move_to(16, GUI::Desktop::the().rect().bottom() - GUI::Desktop::the().taskbar_height() - 16 - window->height()); 21 window->show(); 22 23 return app->exec(); 24}