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:
Andreas Kling 2021-01-03 11:53:57 +01:00
parent 8bf98eb581
commit 43c2b66b18

View file

@ -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");