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