mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:45:07 +00:00
HexEditor: Add Help->Manual entry in Menu
This commit is contained in:
parent
35c9aa7c05
commit
27f5a18ce6
3 changed files with 9 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "HexEditorWidget.h"
|
||||
#include <LibConfig/Client.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
#include <LibFileSystemAccessClient/Client.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
#include <LibGUI/Menubar.h>
|
||||
|
@ -23,6 +24,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto app = TRY(GUI::Application::try_create(arguments));
|
||||
|
||||
TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_protocol("/usr/share/man/man1/HexEditor.md") }));
|
||||
TRY(Desktop::Launcher::seal_allowlist());
|
||||
|
||||
Config::pledge_domain("HexEditor");
|
||||
|
||||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-hex-editor"sv));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue