From 237027f8bb1e5ebe2f992578a9b38bcf10f73694 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 30 Nov 2012 10:55:07 +0100 Subject: [PATCH] QmlPluginDump: Prevent crash if run without WM Make sure that the minimal platform plugin is used by default. Change-Id: I2362649dafaf823b00ab37519b516aef9ac3166b Reviewed-by: hjk Reviewed-by: Friedemann Kleint --- tools/qmlplugindump/main.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp index 27b7fe5..f7404c4 100644 --- a/tools/qmlplugindump/main.cpp +++ b/tools/qmlplugindump/main.cpp @@ -568,6 +568,9 @@ int main(int argc, char *argv[]) QtSimulatorPrivate::SimulatorConnection::createStubInstance(); #endif + // don't require a window manager even though we're a QGuiApplication + qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("minimal")); + QGuiApplication app(argc, argv); const QStringList args = app.arguments(); const QString appName = QFileInfo(app.applicationFilePath()).baseName(); -- 1.7.2.5