mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
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:
parent
e758545b91
commit
8d0985ef01
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue