diff --git a/Userland/Applets/Audio/main.cpp b/Userland/Applets/Audio/main.cpp index 21d790f0e9..8268a479ba 100644 --- a/Userland/Applets/Audio/main.cpp +++ b/Userland/Applets/Audio/main.cpp @@ -215,13 +215,11 @@ ErrorOr serenity_main(Main::Arguments arguments) TRY(Core::System::pledge("stdio recvfd sendfd rpath wpath cpath unix", nullptr)); auto app = TRY(GUI::Application::try_create(arguments)); - TRY(Core::System::unveil("/tmp/portal/config", "rw")); + Config::pledge_domains("AudioApplet"); TRY(Core::System::unveil("/tmp/portal/audio", "rw")); TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil(nullptr, nullptr)); - Config::pledge_domains("AudioApplet"); - auto window = TRY(GUI::Window::try_create()); window->set_has_alpha_channel(true); window->set_title("Audio");