summaryrefslogtreecommitdiff
path: root/Userland/Applications/CharacterMap/CharacterMapWidget.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-01-12 17:14:46 +0000
committerAndreas Kling <kling@serenityos.org>2022-01-16 11:17:03 +0100
commit83a9661c04a8d705193f5a56d0cef3a22f1bf3bb (patch)
tree632eda55ecc62f2f2621143fbcd778ae00a79b7b /Userland/Applications/CharacterMap/CharacterMapWidget.cpp
parent2a7c638cd945865b34a575395c1b0a5d830134db (diff)
downloadserenity-83a9661c04a8d705193f5a56d0cef3a22f1bf3bb.zip
CharacterMap+Base: Add man page for Character Map :^)
Diffstat (limited to 'Userland/Applications/CharacterMap/CharacterMapWidget.cpp')
-rw-r--r--Userland/Applications/CharacterMap/CharacterMapWidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/CharacterMap/CharacterMapWidget.cpp b/Userland/Applications/CharacterMap/CharacterMapWidget.cpp
index 82e4b90108..f90ebe8fa0 100644
--- a/Userland/Applications/CharacterMap/CharacterMapWidget.cpp
+++ b/Userland/Applications/CharacterMap/CharacterMapWidget.cpp
@@ -9,6 +9,7 @@
#include <AK/StringUtils.h>
#include <Applications/CharacterMap/CharacterMapWindowGML.h>
#include <LibConfig/Client.h>
+#include <LibDesktop/Launcher.h>
#include <LibGUI/Action.h>
#include <LibGUI/Application.h>
#include <LibGUI/Clipboard.h>
@@ -134,6 +135,9 @@ void CharacterMapWidget::initialize_menubar(GUI::Window& window)
}));
auto& help_menu = window.add_menu("&Help");
+ help_menu.add_action(GUI::CommonActions::make_help_action([&](auto&) {
+ Desktop::Launcher::open(URL::create_with_file_protocol("/usr/share/man/man1/CharacterMap.md"), "/bin/Help");
+ }));
help_menu.add_action(GUI::CommonActions::make_about_action("Character Map", GUI::Icon::default_icon("app-keyboard-settings"), &window));
}