SoundPlayer: Pledge "FileManager" config domain

This stops SoundPlayer from crashing when attempting to open a sound
file from inside the GUI
This commit is contained in:
Brendan Kelly 2023-04-15 10:41:58 -04:00 committed by Linus Groh
parent e758545b91
commit 8d0985ef01

View file

@ -40,7 +40,7 @@ ErrorOr<int> 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"));