From c0079cf963f7886b906b152e050b27dee1d3f65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Tue, 16 Aug 2022 22:10:50 +0200 Subject: [PATCH] LibCore: Make EventLoop's connection to InspectorServer work again This path was changed to the uid templated version without actually using the template resolver function in Account. --- Userland/Libraries/LibCore/EventLoop.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibCore/EventLoop.cpp b/Userland/Libraries/LibCore/EventLoop.cpp index 3e8a4a392a..8258c78e9d 100644 --- a/Userland/Libraries/LibCore/EventLoop.cpp +++ b/Userland/Libraries/LibCore/EventLoop.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -359,7 +360,8 @@ EventLoop::~EventLoop() bool connect_to_inspector_server() { #ifdef __serenity__ - auto maybe_socket = Core::Stream::LocalSocket::connect("/tmp/user/%uid/portal/inspectables"); + auto inspector_server_path = Account::parse_path_with_uid("/tmp/user/%uid/portal/inspectables"sv); + auto maybe_socket = Stream::LocalSocket::connect(inspector_server_path); if (maybe_socket.is_error()) { dbgln("connect_to_inspector_server: Failed to connect: {}", maybe_socket.error()); return false;