mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-17 05:12:58 +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
|
@ -472,14 +472,6 @@ int main(int argc, char** argv)
|
|||
view_menu.add_separator();
|
||||
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");
|
||||
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");
|
||||
|
|
Loading…
Reference in a new issue