Skip to content

Commit 2f6c9eb

Browse files
committed
Fix WSL check on Linux on DeX and similar distibutes
Closes #7070
1 parent 6d5a0ce commit 2f6c9eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rb/lib/selenium/webdriver/common/platform.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ def wsl?
9696
return false unless linux?
9797

9898
File.read('/proc/version').include?('Microsoft')
99+
rescue Errno::EACCES
100+
# the file cannot be accessed on Linux on DeX
101+
false
99102
end
100103

101104
def cygwin?

0 commit comments

Comments
 (0)