summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2022-07-24 15:56:44 +0200
committerLinus Groh <mail@linusgroh.de>2022-08-14 21:52:35 +0100
commit4f87f03bd1dd51774d89ec5a5a9bb064c025a0d6 (patch)
treedd4c30d3ac5748f2bf5dd467ad66cc7695f3c619 /Userland
parentc248569d6b42083cf39618adf5d38ad772a216e9 (diff)
downloadserenity-4f87f03bd1dd51774d89ec5a5a9bb064c025a0d6.zip
Base: Launch AudioServer at session start-up
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applets/Audio/main.cpp2
-rw-r--r--Userland/Libraries/LibAudio/ConnectionToServer.h2
-rw-r--r--Userland/Utilities/aplay.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applets/Audio/main.cpp b/Userland/Applets/Audio/main.cpp
index 211b66a3e0..10a7b674f1 100644
--- a/Userland/Applets/Audio/main.cpp
+++ b/Userland/Applets/Audio/main.cpp
@@ -241,7 +241,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app = TRY(GUI::Application::try_create(arguments));
Config::pledge_domain("AudioApplet");
- TRY(Core::System::unveil("/tmp/portal/audio", "rw"));
+ TRY(Core::System::unveil("/tmp/user/%uid/portal/audio", "rw"));
TRY(Core::System::unveil("/res", "r"));
TRY(Core::System::unveil(nullptr, nullptr));
diff --git a/Userland/Libraries/LibAudio/ConnectionToServer.h b/Userland/Libraries/LibAudio/ConnectionToServer.h
index 687eae652e..5ed42450fa 100644
--- a/Userland/Libraries/LibAudio/ConnectionToServer.h
+++ b/Userland/Libraries/LibAudio/ConnectionToServer.h
@@ -26,7 +26,7 @@ namespace Audio {
class ConnectionToServer final
: public IPC::ConnectionToServer<AudioClientEndpoint, AudioServerEndpoint>
, public AudioClientEndpoint {
- IPC_CLIENT_CONNECTION(ConnectionToServer, "/tmp/portal/audio"sv)
+ IPC_CLIENT_CONNECTION(ConnectionToServer, "/tmp/user/%uid/portal/audio"sv)
public:
virtual ~ConnectionToServer() override;
diff --git a/Userland/Utilities/aplay.cpp b/Userland/Utilities/aplay.cpp
index cbf97462cc..b8e1a9f537 100644
--- a/Userland/Utilities/aplay.cpp
+++ b/Userland/Utilities/aplay.cpp
@@ -35,7 +35,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
args_parser.parse(arguments);
TRY(Core::System::unveil(Core::File::absolute_path(path), "r"sv));
- TRY(Core::System::unveil("/tmp/portal/audio", "rw"));
+ TRY(Core::System::unveil("/tmp/user/%uid/portal/audio", "rw"));
TRY(Core::System::unveil(nullptr, nullptr));
Core::EventLoop loop;