diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-14 20:14:03 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-14 20:22:20 +0200 |
commit | 953669374c1d5c723db9e1b959044760fa1b9842 (patch) | |
tree | 32e958ff5e31a1c58c278dcbc49272cd4f137eb7 | |
parent | 450a2a0f9ce2443bc06445ee018c9860d8cd5fc8 (diff) | |
download | serenity-953669374c1d5c723db9e1b959044760fa1b9842.zip |
open: Create a Core::EventLoop before using Desktop::Launcher
We can't talk to IPC servers without having an event loop.
-rw-r--r-- | Userland/open.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/open.cpp b/Userland/open.cpp index bb90b04b4e..11588bad0d 100644 --- a/Userland/open.cpp +++ b/Userland/open.cpp @@ -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"); |