From 2259ddf9373252bcf9762d72d4b8638c988c8d77 Mon Sep 17 00:00:00 2001 From: justus2510 Date: Sun, 2 Apr 2023 23:29:32 +0200 Subject: [PATCH] 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. --- Userland/Applications/ImageViewer/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/ImageViewer/main.cpp b/Userland/Applications/ImageViewer/main.cpp index ab8bf6c57f1..2fc66869915 100644 --- a/Userland/Applications/ImageViewer/main.cpp +++ b/Userland/Applications/ImageViewer/main.cpp @@ -43,7 +43,7 @@ ErrorOr 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));