mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 16:55:09 +00:00
LibSQL+Ladybird: Accept a list of paths for spawning SQLServer in Lagom
Use the new get_paths_for_helper_process method in Ladybird to query Qt for the runtime path of the current executable as well as the build directory paths.
This commit is contained in:
parent
3e6d790cf0
commit
ae9dc95b1f
4 changed files with 23 additions and 15 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "BrowserWindow.h"
|
||||
#include "HelperProcess.h"
|
||||
#include "Settings.h"
|
||||
#include "Utilities.h"
|
||||
#include "WebContentView.h"
|
||||
|
@ -99,7 +100,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
return app.exec();
|
||||
}
|
||||
|
||||
auto sql_client = TRY(SQL::SQLClient::launch_server_and_create_client("./SQLServer/SQLServer"sv));
|
||||
auto sql_server_paths = TRY(get_paths_for_helper_process("SQLServer"sv));
|
||||
auto sql_client = TRY(SQL::SQLClient::launch_server_and_create_client(move(sql_server_paths)));
|
||||
auto database = TRY(Browser::Database::create(move(sql_client)));
|
||||
|
||||
auto cookie_jar = TRY(Browser::CookieJar::create(*database));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue