Set DISPLAY from HOMEBREW_DISPLAY unconditionally

No need to test for existence, ruby ENV does the right thing.
This commit is contained in:
Mike Miller 2019-02-12 11:37:35 -08:00
parent ae1e4e7022
commit 6819cbf967

View File

@ -388,9 +388,7 @@ def exec_browser(*args)
browser ||= OS::PATH_OPEN if defined?(OS::PATH_OPEN)
return unless browser
if ENV["HOMEBREW_DISPLAY"]
ENV["DISPLAY"] = ENV["HOMEBREW_DISPLAY"]
end
ENV["DISPLAY"] = ENV["HOMEBREW_DISPLAY"]
safe_exec(browser, *args)
end