mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
ImageViewer: Fix crash when setting wallpaper
When trying to set the wallpaper from the menu, ImageViewer would crash because setting the wallpaper requires the program to pledge to the WindowManager domain. This patch adds that pledge.
This commit is contained in:
parent
0abd469d24
commit
2259ddf937
Notes:
sideshowbarker
2024-07-17 08:55:54 +09:00
Author: https://github.com/justus2510 🔰
Commit: 2259ddf937
Pull-request: https://github.com/SerenityOS/serenity/pull/18156
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto app = TRY(GUI::Application::try_create(arguments));
|
||||
|
||||
Config::pledge_domain("ImageViewer");
|
||||
Config::pledge_domains({ "ImageViewer", "WindowManager" });
|
||||
|
||||
app->set_config_domain(TRY("ImageViewer"_string));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue