1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

Presenter: Add Manual link in help menu

This commit is contained in:
Gabriel Tassinari 2024-02-06 04:02:30 -03:00 committed by Sam Atkins
parent 7326d00baa
commit 946a4d6f0f
3 changed files with 10 additions and 1 deletions

View file

@ -8,6 +8,7 @@
#include "PresenterWidget.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>
@ -24,6 +25,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
argument_parser.parse(arguments);
auto app = TRY(GUI::Application::create(arguments));
TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_scheme("/usr/share/man/man1/Applications/Presenter.md") }));
TRY(Desktop::Launcher::seal_allowlist());
auto window = GUI::Window::construct();
window->set_title("Presenter");
window->set_icon(GUI::Icon::default_icon("app-presenter"sv).bitmap_for_size(16));