mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:17:44 +00:00
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.
This commit is contained in:
parent
04c362b4dd
commit
c0079cf963
1 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
#include <AK/Singleton.h>
|
#include <AK/Singleton.h>
|
||||||
#include <AK/TemporaryChange.h>
|
#include <AK/TemporaryChange.h>
|
||||||
#include <AK/Time.h>
|
#include <AK/Time.h>
|
||||||
|
#include <LibCore/Account.h>
|
||||||
#include <LibCore/Event.h>
|
#include <LibCore/Event.h>
|
||||||
#include <LibCore/EventLoop.h>
|
#include <LibCore/EventLoop.h>
|
||||||
#include <LibCore/LocalServer.h>
|
#include <LibCore/LocalServer.h>
|
||||||
|
@ -359,7 +360,8 @@ EventLoop::~EventLoop()
|
||||||
bool connect_to_inspector_server()
|
bool connect_to_inspector_server()
|
||||||
{
|
{
|
||||||
#ifdef __serenity__
|
#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()) {
|
if (maybe_socket.is_error()) {
|
||||||
dbgln("connect_to_inspector_server: Failed to connect: {}", maybe_socket.error());
|
dbgln("connect_to_inspector_server: Failed to connect: {}", maybe_socket.error());
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue