mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00: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
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