mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
Base+Maps: Add manpage for Maps
Also, list Maps in Applications.md and add a link to the manpage in Map's Help menu.
This commit is contained in:
parent
47514e07b4
commit
4c64c0b61e
3 changed files with 41 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "UsersMapWidget.h"
|
||||
#include <LibConfig/Client.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
|
@ -125,6 +126,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto help_menu = window->add_menu("&Help"_string);
|
||||
help_menu->add_action(GUI::CommonActions::make_command_palette_action(window));
|
||||
help_menu->add_action(GUI::CommonActions::make_help_action([](auto&) {
|
||||
Desktop::Launcher::open(URL::create_with_file_scheme("/usr/share/man/man1/Applications/Maps.md"), "/bin/Help");
|
||||
}));
|
||||
help_menu->add_action(GUI::CommonActions::make_about_action("Maps"_string, app_icon, window));
|
||||
|
||||
// Main toolbar actions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue