Skip to content

Commit

Permalink
Fix WSL check on Linux on DeX and similar distibutes
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Nov 20, 2019
1 parent 6d5a0ce commit 2f6c9eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rb/lib/selenium/webdriver/common/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ def wsl?
return false unless linux?

File.read('/proc/version').include?('Microsoft')
rescue Errno::EACCES
# the file cannot be accessed on Linux on DeX
false
end

def cygwin?
Expand Down

0 comments on commit 2f6c9eb

Please sign in to comment.