From 21efd96c64d4c936c767f634aca741bfb3e8b949 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sun, 10 May 2020 02:26:08 +0430 Subject: [PATCH] LibDesktop: Return the correct value in OpenUrl This patch fixes a tiny issue where the result of open_url would always be true, since handle(OpenUrl) returns the message instead of the result. --- Libraries/LibDesktop/Launcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibDesktop/Launcher.cpp b/Libraries/LibDesktop/Launcher.cpp index 74887b86ed..734ade0e57 100644 --- a/Libraries/LibDesktop/Launcher.cpp +++ b/Libraries/LibDesktop/Launcher.cpp @@ -48,13 +48,13 @@ private: : IPC::ServerConnection(*this, "/tmp/portal/launch") { } - virtual void handle(const Messages::LaunchClient::Dummy&) override {} + virtual void handle(const Messages::LaunchClient::Dummy&) override { } }; bool Launcher::open(const URL& url) { auto connection = LaunchServerConnection::construct(); - return connection->send_sync(url.to_string()); + return connection->send_sync(url.to_string())->response(); } }