summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorBrendan Kelly <brewkelly@gmail.com>2023-04-15 10:41:58 -0400
committerLinus Groh <mail@linusgroh.de>2023-04-17 10:34:40 +0200
commit8d0985ef012188d20212b1532450dc1cd19008d7 (patch)
tree8b91a5737f22c94919252133c57fefc1270ba4eb /Userland
parente758545b91121bdde50fd515a0db93c698664bc4 (diff)
downloadserenity-8d0985ef012188d20212b1532450dc1cd19008d7.zip
SoundPlayer: Pledge "FileManager" config domain
This stops SoundPlayer from crashing when attempting to open a sound file from inside the GUI
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/SoundPlayer/main.cpp2
1 files changed, 1 insertions, 1 deletions
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<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"));