From 8d0985ef012188d20212b1532450dc1cd19008d7 Mon Sep 17 00:00:00 2001 From: Brendan Kelly Date: Sat, 15 Apr 2023 10:41:58 -0400 Subject: SoundPlayer: Pledge "FileManager" config domain This stops SoundPlayer from crashing when attempting to open a sound file from inside the GUI --- Userland/Applications/SoundPlayer/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Applications/SoundPlayer/main.cpp') diff --git a/Userland/Applications/SoundPlayer/main.cpp b/Userland/Applications/SoundPlayer/main.cpp index ecf7030f38..e9c5ecfa9a 100644 --- a/Userland/Applications/SoundPlayer/main.cpp +++ b/Userland/Applications/SoundPlayer/main.cpp @@ -40,7 +40,7 @@ ErrorOr serenity_main(Main::Arguments arguments) auto audio_client = TRY(Audio::ConnectionToServer::try_create()); auto decoder_client = TRY(ImageDecoderClient::Client::try_create()); - Config::pledge_domain("SoundPlayer"); + Config::pledge_domains({ "SoundPlayer", "FileManager" }); app->set_config_domain(TRY("SoundPlayer"_string)); TRY(Core::System::pledge("stdio recvfd sendfd rpath thread proc")); -- cgit v1.2.3