diff options
author | Robert Griebl <robert.griebl@qt.io> | 2024-02-07 14:43:50 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2024-02-07 18:39:45 +0100 |
commit | 8ed0ae0248e5a760e0349aa07be1b336a8ccee6d (patch) | |
tree | 68f2aa077ed0dbc2c6cba805b97c898b8cd9dbac | |
parent | b44ca96b7fbf0f640d9e2858474282b21295a194 (diff) |
controller: ignore stdin/out/err redirections on Windows
Change-Id: Ibcff0aea7adb62611461d26851ce88ef6bcbd5a0
Pick-to: 6.7
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
-rw-r--r-- | src/tools/controller/controller.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tools/controller/controller.cpp b/src/tools/controller/controller.cpp index 464142e1..48b0abe5 100644 --- a/src/tools/controller/controller.cpp +++ b/src/tools/controller/controller.cpp @@ -687,8 +687,16 @@ void startOrDebugApplication(const QString &debugWrapper, const QString &appId, } bool isDebug = !debugWrapper.isEmpty(); + bool hasRedirections = !stdRedirections.isEmpty(); +#if defined(Q_OS_WINDOWS) + if (hasRedirections) { + fprintf(stderr, "WARNING: Ignoring std-in/out/err redirections, as these are not supported on Windows."); + hasRedirections = false; + } +#endif QDBusPendingReply<bool> reply; - if (stdRedirections.isEmpty()) { + + if (!hasRedirections) { reply = isDebug ? dbus()->manager()->debugApplication(appId, debugWrapper, documentUrl) : dbus()->manager()->startApplication(appId, documentUrl); } else { |