mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Launcher: Provide launcher details to LibDesktop
This allows applications to get additional information, such as name or icons, for each launch handler.
This commit is contained in:
parent
7498024805
commit
535113bac4
7 changed files with 208 additions and 26 deletions
|
@ -67,4 +67,11 @@ OwnPtr<Messages::LaunchServer::GetHandlersForURLResponse> ClientConnection::hand
|
|||
return make<Messages::LaunchServer::GetHandlersForURLResponse>(result);
|
||||
}
|
||||
|
||||
OwnPtr<Messages::LaunchServer::GetHandlersWithDetailsForURLResponse> ClientConnection::handle(const Messages::LaunchServer::GetHandlersWithDetailsForURL& request)
|
||||
{
|
||||
URL url(request.url());
|
||||
auto result = Launcher::the().handlers_with_details_for_url(url);
|
||||
return make<Messages::LaunchServer::GetHandlersWithDetailsForURLResponse>(result);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue