mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
CertificateSettings: Add import functionality
This commit is contained in:
parent
c273784c3e
commit
7ce75ee3c5
5 changed files with 64 additions and 4 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "CertificateStore.h"
|
||||
|
||||
#include <LibCore/StandardPaths.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
|
@ -19,9 +20,11 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
|
||||
auto app = TRY(GUI::Application::try_create(args));
|
||||
|
||||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil(TRY(String::formatted("{}/.config/certs.pem", Core::StandardPaths::home_directory())), "rwc"_short_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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue