From 953669374c1d5c723db9e1b959044760fa1b9842 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 14 May 2020 20:14:03 +0200 Subject: [PATCH] open: Create a Core::EventLoop before using Desktop::Launcher We can't talk to IPC servers without having an event loop. --- Userland/open.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 #include #include +#include #include #include int main(int argc, char* argv[]) { + Core::EventLoop loop; Vector urls_or_paths; Core::ArgsParser parser; parser.add_positional_argument(urls_or_paths, "URL or file path to open", "url-or-path");