1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:47:35 +00:00

SoundPlayer: Pledge proc so that we can actually open audio files

This commit is contained in:
Andrew Kaster 2022-12-24 22:38:44 -07:00 committed by Andreas Kling
parent a5dfd5eeb6
commit 18c559b0e3

View file

@ -26,13 +26,13 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
TRY(Core::System::pledge("stdio recvfd sendfd rpath thread unix"));
TRY(Core::System::pledge("stdio recvfd sendfd rpath thread unix proc"));
auto app = TRY(GUI::Application::try_create(arguments));
auto audio_client = TRY(Audio::ConnectionToServer::try_create());
auto decoder_client = TRY(ImageDecoderClient::Client::try_create());
TRY(Core::System::pledge("stdio recvfd sendfd rpath thread"));
TRY(Core::System::pledge("stdio recvfd sendfd rpath thread proc"));
auto app_icon = GUI::Icon::default_icon("app-sound-player"sv);