diff --git a/src/core/web_engine_library_info.cpp b/src/core/web_engine_library_info.cpp index 67a466c90196fcc8fda85133666a2de8c0e2a0e8..4e7d20cc75eb63d73153039884bdc26204dc83b6 100644 --- a/src/core/web_engine_library_info.cpp +++ b/src/core/web_engine_library_info.cpp @@ -99,8 +99,13 @@ QString location(QLibraryInfo::LibraryLocation path) QString subProcessPath() { 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) % QDir::separator() % QStringLiteral(QTWEBENGINEPROCESS_NAME)); +#endif if (!initialized) { // Allow overriding at runtime for the time being. const QByteArray fromEnv = qgetenv("QTWEBENGINEPROCESS_PATH");