From d1533537f9fc7d8ce6d2f440b770e10a7aca486e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Sun, 15 Jun 2025 23:14:04 -0300 Subject: [PATCH] Use a login shell to extract the PATH. --- src/tools/ecode/ecode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/ecode/ecode.cpp b/src/tools/ecode/ecode.cpp index 7d77bad2d..78b9a56e9 100644 --- a/src/tools/ecode/ecode.cpp +++ b/src/tools/ecode/ecode.cpp @@ -3355,7 +3355,7 @@ static std::string getDefaultShell() { static std::string getShellEnv( const std::string& env, const std::string& defShell = "" ) { std::string shell = defShell.empty() ? Sys::which( getDefaultShell() ) : defShell; Process process; - if ( process.create( shell, "-c env", Process::getDefaultOptions() ) ) { + if ( process.create( shell, "-l -c env", Process::getDefaultOptions() ) ) { size_t envLen = env.size(); std::string buf( 32 * 1024, '\0' ); process.readAllStdOut( buf );