From 701e77019cded0ecb860d25920c109127115e6c8 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Thu, 15 Dec 2022 07:18:15 -0500 Subject: [PATCH] LibCore: Use the user's root session ID for standard runtime path This ensures processes created by the user use the same runtime path. --- Userland/Libraries/LibCore/StandardPaths.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibCore/StandardPaths.cpp b/Userland/Libraries/LibCore/StandardPaths.cpp index feea2afa9e..da3cdc1563 100644 --- a/Userland/Libraries/LibCore/StandardPaths.cpp +++ b/Userland/Libraries/LibCore/StandardPaths.cpp @@ -8,8 +8,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -92,7 +92,7 @@ ErrorOr StandardPaths::runtime_directory() StringBuilder builder; #if defined(AK_OS_SERENITY) - auto sid = TRY(Core::System::getsid()); + auto sid = TRY(Core::SessionManagement::root_session_id()); builder.appendff("/tmp/session/{}", sid); #elif defined(AK_OS_MACOS) builder.append(home_directory());