1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

open: Create a Core::EventLoop before using Desktop::Launcher

We can't talk to IPC servers without having an event loop.
This commit is contained in:
Andreas Kling 2020-05-14 20:14:03 +02:00
parent 450a2a0f9c
commit 953669374c
Notes: sideshowbarker 2024-07-19 06:39:14 +09:00

View file

@ -27,11 +27,13 @@
#include <AK/URL.h>
#include <AK/Vector.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/EventLoop.h>
#include <LibDesktop/Launcher.h>
#include <string.h>
int main(int argc, char* argv[])
{
Core::EventLoop loop;
Vector<const char*> urls_or_paths;
Core::ArgsParser parser;
parser.add_positional_argument(urls_or_paths, "URL or file path to open", "url-or-path");