mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +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
					
				
					 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
	
	 justus2510
						justus2510