|
@@ -6,9 +6,11 @@
|
|
|
|
|
|
#include "CharacterMapWidget.h"
|
|
|
#include "SearchCharacters.h"
|
|
|
+#include <AK/URL.h>
|
|
|
#include <LibConfig/Client.h>
|
|
|
#include <LibCore/ArgsParser.h>
|
|
|
#include <LibCore/System.h>
|
|
|
+#include <LibDesktop/Launcher.h>
|
|
|
#include <LibGUI/Application.h>
|
|
|
#include <LibGUI/Icon.h>
|
|
|
#include <LibGUI/Window.h>
|
|
@@ -43,6 +45,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|
|
auto app = TRY(GUI::Application::try_create(arguments));
|
|
|
Config::pledge_domains("CharacterMap");
|
|
|
|
|
|
+ TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_protocol("/usr/share/man/man1/CharacterMap.md") }));
|
|
|
+ TRY(Desktop::Launcher::seal_allowlist());
|
|
|
+
|
|
|
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
|
|
|
TRY(Core::System::unveil("/res", "r"));
|
|
|
TRY(Core::System::unveil(nullptr, nullptr));
|