Commit bbced0d3 authored by Zoltan Arvai's avatar Zoltan Arvai Committed by The Qt Project
Browse files

Fix QtWebEngineProcess name on Windows


QtWebEngineProcess has an exe extension that need to be added
to processPath.

Change-Id: I2ab1691f7af35c76bf693046396b5464e0f2dde2
Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
Showing with 5 additions and 0 deletions
...@@ -99,8 +99,13 @@ QString location(QLibraryInfo::LibraryLocation path) ...@@ -99,8 +99,13 @@ QString location(QLibraryInfo::LibraryLocation path)
QString subProcessPath() QString subProcessPath()
{ {
static bool initialized = false; static bool initialized = false;
#if defined(OS_WIN)
static QString processPath (location(QLibraryInfo::LibraryExecutablesPath)
% QDir::separator() % QStringLiteral(QTWEBENGINEPROCESS_NAME) % QStringLiteral(".exe"));
#else
static QString processPath (location(QLibraryInfo::LibraryExecutablesPath) static QString processPath (location(QLibraryInfo::LibraryExecutablesPath)
% QDir::separator() % QStringLiteral(QTWEBENGINEPROCESS_NAME)); % QDir::separator() % QStringLiteral(QTWEBENGINEPROCESS_NAME));
#endif
if (!initialized) { if (!initialized) {
// Allow overriding at runtime for the time being. // Allow overriding at runtime for the time being.
const QByteArray fromEnv = qgetenv("QTWEBENGINEPROCESS_PATH"); const QByteArray fromEnv = qgetenv("QTWEBENGINEPROCESS_PATH");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment