/* * Copyright (c) 2023, Fabian Dellwing * * SPDX-License-Identifier: BSD-2-Clause */ #include "CertificateStoreWidget.h" #include #include #include #include #include #include #include ErrorOr serenity_main(Main::Arguments args) { TRY(Core::System::pledge("stdio rpath wpath cpath recvfd sendfd unix")); auto app = TRY(GUI::Application::create(args)); TRY(Core::System::unveil(TRY(String::formatted("{}/.config/certs.pem", Core::StandardPaths::home_directory())), "rwc"_string)); TRY(Core::System::unveil("/tmp/session/%sid/portal/filesystemaccess", "rw")); TRY(Core::System::unveil("/etc/cacert.pem", "r")); TRY(Core::System::unveil("/etc/timezone", "r")); TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil(nullptr, nullptr)); auto app_icon = GUI::Icon::default_icon("certificate"sv); auto window = TRY(GUI::SettingsWindow::create("Certificate Settings", GUI::SettingsWindow::ShowDefaultsButton::No)); auto cert_store_widget = TRY(window->add_tab("Certificate Store"_string, "certificate"sv)); window->set_icon(app_icon.bitmap_for_size(16)); window->show(); return app->exec(); }