1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

LibDesktop: Add Launcher::ensure_connection()

This can be use force connection at startup and not to leave 'unix'
pledge all the time.
This commit is contained in:
Maciej 2021-12-29 17:23:43 +01:00 committed by Andreas Kling
parent 3022baddc2
commit 07cf2218cb
2 changed files with 6 additions and 0 deletions

View file

@ -50,6 +50,11 @@ static LaunchServerConnection& connection()
return connection;
}
void Launcher::ensure_connection()
{
[[maybe_unused]] auto& conn = connection();
}
ErrorOr<void> Launcher::add_allowed_url(URL const& url)
{
auto response_or_error = connection().try_add_allowed_url(url);