mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
Revert "Terminal: Tell LaunchServer we only need to open "Help""
This reverts commit 8bf98eb581
.
Terminal uses LaunchServer to open URLs that you click on. Oopsie!
This commit is contained in:
parent
8bf98eb581
commit
43c2b66b18
1 changed files with 0 additions and 8 deletions
|
@ -472,14 +472,6 @@ int main(int argc, char** argv)
|
||||||
view_menu.add_separator();
|
view_menu.add_separator();
|
||||||
view_menu.add_action(pick_font_action);
|
view_menu.add_action(pick_font_action);
|
||||||
|
|
||||||
if (!Desktop::Launcher::add_allowed_handler_with_only_specific_urls(
|
|
||||||
"/bin/Help",
|
|
||||||
{ URL::create_with_file_protocol("/usr/share/man/man1/Terminal.md") })
|
|
||||||
|| !Desktop::Launcher::seal_allowed_handler_list()) {
|
|
||||||
warnln("Failed to set up allowed launch handlers");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto& help_menu = menubar->add_menu("Help");
|
auto& help_menu = menubar->add_menu("Help");
|
||||||
help_menu.add_action(GUI::CommonActions::make_help_action([](auto&) {
|
help_menu.add_action(GUI::CommonActions::make_help_action([](auto&) {
|
||||||
Desktop::Launcher::open(URL::create_with_file_protocol("/usr/share/man/man1/Terminal.md"), "/bin/Help");
|
Desktop::Launcher::open(URL::create_with_file_protocol("/usr/share/man/man1/Terminal.md"), "/bin/Help");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue