diff options
Diffstat (limited to 'Libraries/LibDesktop')
-rw-r--r-- | Libraries/LibDesktop/Launcher.cpp | 6 | ||||
-rw-r--r-- | Libraries/LibDesktop/Launcher.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibDesktop/Launcher.cpp b/Libraries/LibDesktop/Launcher.cpp index 43fd5a7c3b..0d35c0c618 100644 --- a/Libraries/LibDesktop/Launcher.cpp +++ b/Libraries/LibDesktop/Launcher.cpp @@ -48,13 +48,13 @@ private: : IPC::ServerConnection<LaunchClientEndpoint, LaunchServerEndpoint>(*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) +bool Launcher::open(const URL& url, const String& handler_name) { auto connection = LaunchServerConnection::construct(); - return connection->send_sync<Messages::LaunchServer::OpenUrl>(url.to_string())->response(); + return connection->send_sync<Messages::LaunchServer::OpenUrl>(url.to_string(), handler_name)->response(); } Vector<String> Launcher::get_handlers_for_url(const URL& url) diff --git a/Libraries/LibDesktop/Launcher.h b/Libraries/LibDesktop/Launcher.h index 7acf2cc5b8..b8c792a01b 100644 --- a/Libraries/LibDesktop/Launcher.h +++ b/Libraries/LibDesktop/Launcher.h @@ -32,7 +32,7 @@ namespace Desktop { class Launcher { public: - static bool open(const URL&); + static bool open(const URL&, const String& handler_name = {}); static Vector<String> get_handlers_for_url(const URL&); }; |