From 02e6b5ecbc3d4d49aaed16c061b576f87e56b3da Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Thu, 24 Apr 2025 13:41:55 +0200 Subject: [PATCH] Utils: Fix starting process without executable SSH devices will try to open a shell without setting a specific shell executable. To allow this, we also need to check if scheme and host are empty. Change-Id: Ia11a1f2fe43168798b120b2991094f2d117e4861 Reviewed-by: hjk --- src/libs/utils/qtcprocess.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/utils/qtcprocess.cpp b/src/libs/utils/qtcprocess.cpp index d7e93b96784..59f0efe5831 100644 --- a/src/libs/utils/qtcprocess.cpp +++ b/src/libs/utils/qtcprocess.cpp @@ -1152,7 +1152,9 @@ void Process::start() "lead to crash! Consider calling close() prior to direct restart.")); d->clearForRun(); - if (d->m_setup.m_commandLine.executable().isEmpty()) { + if (d->m_setup.m_commandLine.executable().isEmpty() + && d->m_setup.m_commandLine.executable().scheme().isEmpty() + && d->m_setup.m_commandLine.executable().host().isEmpty()) { d->m_result = ProcessResult::StartFailed; d->m_resultData.m_exitCode = 255; d->m_resultData.m_exitStatus = QProcess::CrashExit;