1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

Chess: Automatically update and repaint when the config changes

This commit is contained in:
Sam Atkins 2023-02-01 21:33:31 +00:00 committed by Andreas Kling
parent 05913b853a
commit 89d7d29d68
3 changed files with 34 additions and 1 deletions

View file

@ -27,6 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app = TRY(GUI::Application::try_create(arguments));
Config::pledge_domain("Games");
Config::monitor_domain("Games");
TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_scheme("/usr/share/man/man6/Chess.md") }));
TRY(Desktop::Launcher::seal_allowlist());