diff options
author | justus2510 <justus2510@proton.me> | 2023-04-02 23:29:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-03 07:11:28 +0200 |
commit | 2259ddf9373252bcf9762d72d4b8638c988c8d77 (patch) | |
tree | c7c89f0ec7278fdb586f2a7b3752df8309d781c9 /Userland/Applications/ImageViewer | |
parent | 0abd469d247d24b28a8a996d04c0d7a0d6293675 (diff) | |
download | serenity-2259ddf9373252bcf9762d72d4b8638c988c8d77.zip |
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.
Diffstat (limited to 'Userland/Applications/ImageViewer')
-rw-r--r-- | Userland/Applications/ImageViewer/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/ImageViewer/main.cpp b/Userland/Applications/ImageViewer/main.cpp index ab8bf6c57f..2fc6686991 100644 --- a/Userland/Applications/ImageViewer/main.cpp +++ b/Userland/Applications/ImageViewer/main.cpp @@ -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)); |