GMLPlayground: Enable permissive mode for Config access
Instead of having to list any Config domains that may be used by a Widget, let accessing those domains be a no-op.
This commit is contained in:
parent
5bcb3e2f16
commit
e8a803ca5d
Notes:
sideshowbarker
2024-07-17 04:41:05 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/e8a803ca5d Pull-request: https://github.com/SerenityOS/serenity/pull/23171 Reviewed-by: https://github.com/gmta
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021, Julius Heijmen <julius.heijmen@gmail.com>
|
||||
* Copyright (c) 2022, kleines Filmröllchen <filmroellchen@serenityos.org>
|
||||
* Copyright (c) 2022-2023, Sam Atkins <atkinssj@serenityos.org>
|
||||
* Copyright (c) 2022-2024, Sam Atkins <atkinssj@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -23,7 +23,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::pledge("stdio thread recvfd sendfd cpath rpath wpath unix"));
|
||||
auto app = TRY(GUI::Application::create(arguments));
|
||||
|
||||
Config::pledge_domains({ "GMLPlayground", "Calendar" });
|
||||
Config::enable_permissive_mode();
|
||||
Config::pledge_domain("GMLPlayground");
|
||||
app->set_config_domain("GMLPlayground"_string);
|
||||
|
||||
TRY(Core::System::unveil("/res", "r"));
|
||||
|
|
Loading…
Add table
Reference in a new issue