Applets/Audio: Remove unveiling /tmp/portal/config

This commit is contained in:
Ralf Donau 2021-11-11 14:35:33 +01:00 committed by Andreas Kling
parent 46ad5f2a17
commit f53bc19b8a
Notes: sideshowbarker 2024-07-18 00:42:42 +09:00

View file

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