summaryrefslogtreecommitdiff
path: root/Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp')
-rw-r--r--Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp b/Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp
index 2a95a843e..827cda6f9 100644
--- a/Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp
+++ b/Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp
@@ -36,15 +36,18 @@ namespace WebKit {
static String executablePath(QString baseName)
{
+#if OS(WINDOWS)
+ baseName.append(QStringLiteral(".exe"));
+#endif
QString expectedPath = QCoreApplication::applicationDirPath() + QDir::separator() + baseName;
if (QFile::exists(expectedPath))
- return String(expectedPath);
+ return expectedPath;
expectedPath = QLibraryInfo::location(QLibraryInfo::LibraryExecutablesPath) + QDir::separator() + baseName;
if (QFile::exists(expectedPath))
- return String(expectedPath);
+ return expectedPath;
- return String(QString(baseName));
+ return baseName;
}
String executablePathOfWebProcess()