brew: keep DBus session address in env

Otherwise `brew deps --graph` will fail to launch Firefox on Linux.

Fixes https://github.com/Homebrew/brew/issues/12881.
This commit is contained in:
Adrian Ho 2022-02-17 11:55:04 +08:00
parent fbf94fe2c0
commit cbac7a3063

View File

@ -372,7 +372,9 @@ module Kernel
ENV["DISPLAY"] = Homebrew::EnvConfig.display ENV["DISPLAY"] = Homebrew::EnvConfig.display
safe_system(browser, *args) with_env(DBUS_SESSION_BUS_ADDRESS: ENV["HOMEBREW_DBUS_SESSION_BUS_ADDRESS"]) do
safe_system(browser, *args)
end
end end
# GZips the given paths, and returns the gzipped paths. # GZips the given paths, and returns the gzipped paths.