diff options
-rw-r--r-- | src/core/web_engine_library_info.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/web_engine_library_info.cpp b/src/core/web_engine_library_info.cpp index 67a466c90..4e7d20cc7 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"); |