File fix-application-output.patch of Package libqt5-creator

From: Javier Llorente <javier@opensuse.org>
Subject: Fix application output
References: N/A

There is no application output on Qt Creator because logging goes to journald.
Workaround: set QT_LOGGING_TO_CONSOLE and QT_FORCE_STDERR_LOGGING

Index: qt-creator-opensource-src-4.8.0-rc1/src/app/main.cpp
===================================================================
--- qt-creator-opensource-src-4.8.0-rc1.orig/src/app/main.cpp
+++ qt-creator-opensource-src-4.8.0-rc1/src/app/main.cpp
@@ -412,6 +412,13 @@ int main(int argc, char **argv)
         QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);
     }
 
+    // Force Qt to log to stderr
+    qputenv("QT_FORCE_STDERR_LOGGING", "1");
+#if QT_VERSION < QT_VERSION_CHECK(5, 11, 0)
+    // Qt < 5.11 needs this, but Qt >= 5.11.0 prints a warning if set.
+    qputenv("QT_LOGGING_TO_CONSOLE", "1");
+#endif
+
     Utils::TemporaryDirectory::setMasterTemporaryDirectory(QDir::tempPath() + "/" + Core::Constants::IDE_CASED_ID + "-XXXXXX");
 
 #ifdef Q_OS_MAC