From 9e3165433911d7ee799fc1abfe1d67f65a4fcce2 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Thu, 28 Sep 2023 15:55:19 +0200 Subject: [PATCH] Terminal: Fix bash shell integration on KDE Change-Id: I7c84cee276f1ee2fd902a447b763609534285911 Reviewed-by: Alessandro Portale --- src/plugins/terminal/shellintegration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/terminal/shellintegration.cpp b/src/plugins/terminal/shellintegration.cpp index 8cd6acd7443..cc5c50706ea 100644 --- a/src/plugins/terminal/shellintegration.cpp +++ b/src/plugins/terminal/shellintegration.cpp @@ -146,7 +146,7 @@ void ShellIntegration::prepareProcess(Utils::Process &process) CommandLine newCmd = {cmd.executable(), {"--init-file", tmpRc.nativePath()}}; if (cmd.arguments() == "-l") - newCmd.addArg("-l"); + env.set("VSCODE_SHELL_LOGIN", "1"); cmd = newCmd; } else if (cmd.executable().baseName() == "zsh") {