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.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp b/Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp
index bba73657f..250b16c80 100644
--- a/Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp
+++ b/Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp
@@ -40,7 +40,12 @@ static String executablePath(QString baseName)
if (QFile::exists(expectedPath))
return String(expectedPath);
- expectedPath = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator() + baseName;
+ QLibraryInfo::LibraryLocation location = QLibraryInfo::BinariesPath;
+#if USE(LIBEXECDIR)
+ location = QLibraryInfo::LibraryExecutablesPath;
+#endif
+
+ expectedPath = QLibraryInfo::location(location) + QDir::separator() + baseName;
if (QFile::exists(expectedPath))
return String(expectedPath);