File fix-application-output.patch of Package qt-creator
From db56ce96c62aeb35c17fab70e41a83509a933848 Mon Sep 17 00:00:00 2001
From: Javier Llorente <javier@opensuse.org>
Date: Tue, 8 Dec 2020 14:08:11 +0100
Subject: [PATCH] Fix application output
There is no application output on Qt Creator because logging goes to journald.
Workaround: set QT_LOGGING_TO_CONSOLE and QT_FORCE_STDERR_LOGGING
---
src/app/main.cpp | 3 +++
1 file changed, 3 insertions(+)
Index: qt-creator-opensource-src-9.0.1/src/app/main.cpp
===================================================================
--- qt-creator-opensource-src-9.0.1.orig/src/app/main.cpp
+++ qt-creator-opensource-src-9.0.1/src/app/main.cpp
@@ -470,6 +470,10 @@ int main(int argc, char **argv)
{{"LD_PRELOAD", "", Utils::EnvironmentItem::Unset}});
}
+ // Force Qt to log to stderr
+ Utils::Environment::modifySystemEnvironment(
+ {{"QT_FORCE_STDERR_LOGGING", "1", Utils::EnvironmentItem::SetEnabled}});
+
if (options.userLibraryPath) {
if ((*options.userLibraryPath).isEmpty()) {
Utils::Environment::modifySystemEnvironment(