Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP3
libqt5-creator
fix-application-output.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor