From 7181943d8d86ca73914330f215caaa40e0d8be10 Mon Sep 17 00:00:00 2001 From: bitwitch Date: Mon, 21 Jun 2021 16:44:36 -0400 Subject: [PATCH] LaunchServer: Fix regression in opening files with TextEditor My previous PR had a small error in rebasing and removed a line in open_file_url. This caused opening text files from the terminal to always open with an empty TextEditor. This commit fixes that problem! --- Userland/Services/LaunchServer/Launcher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Services/LaunchServer/Launcher.cpp b/Userland/Services/LaunchServer/Launcher.cpp index 1d3c39e748..c8765c26d6 100644 --- a/Userland/Services/LaunchServer/Launcher.cpp +++ b/Userland/Services/LaunchServer/Launcher.cpp @@ -331,6 +331,9 @@ bool Launcher::open_file_url(const URL& url) filepath = String::formatted("{}:{}", filepath, line.value()); } } + + additional_parameters.append(filepath); + return open_with_user_preferences(m_file_handlers, extension, additional_parameters, default_handler); } }