Skip to content

Commit d2ea27d

Browse files
pgorszkowski-igaliaspenap
authored andcommitted
Ensure we check for WEBKIT_EXEC_PATH even without developer mode
1 parent 2481977 commit d2ea27d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Source/WebKit/Shared/glib/ProcessExecutablePathGLib.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,16 @@
3232

3333
namespace WebKit {
3434

35-
#if ENABLE(DEVELOPER_MODE)
3635
static String getExecutablePath()
3736
{
3837
CString executablePath = FileSystem::currentExecutablePath();
3938
if (!executablePath.isNull())
4039
return FileSystem::parentPath(FileSystem::stringFromFileSystemRepresentation(executablePath.data()));
4140
return { };
4241
}
43-
#endif
4442

4543
static String findWebKitProcess(const char* processName)
4644
{
47-
#if ENABLE(DEVELOPER_MODE)
4845
static const char* execDirectory = g_getenv("WEBKIT_EXEC_PATH");
4946
if (execDirectory) {
5047
String processPath = FileSystem::pathByAppendingComponent(FileSystem::stringFromFileSystemRepresentation(execDirectory), StringView::fromLatin1(processName));
@@ -58,7 +55,6 @@ static String findWebKitProcess(const char* processName)
5855
if (FileSystem::fileExists(processPath))
5956
return processPath;
6057
}
61-
#endif
6258

6359
return FileSystem::pathByAppendingComponent(FileSystem::stringFromFileSystemRepresentation(PKGLIBEXECDIR), StringView::fromLatin1(processName));
6460
}

0 commit comments

Comments
 (0)