mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10: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:
parent
450a2a0f9c
commit
953669374c
Notes:
sideshowbarker
2024-07-19 06:39:14 +09:00
Author: https://github.com/awesomekling
Commit: 953669374c
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue