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:
parent
fbf94fe2c0
commit
cbac7a3063
@ -372,8 +372,10 @@ module Kernel
|
|||||||
|
|
||||||
ENV["DISPLAY"] = Homebrew::EnvConfig.display
|
ENV["DISPLAY"] = Homebrew::EnvConfig.display
|
||||||
|
|
||||||
|
with_env(DBUS_SESSION_BUS_ADDRESS: ENV["HOMEBREW_DBUS_SESSION_BUS_ADDRESS"]) do
|
||||||
safe_system(browser, *args)
|
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.
|
||||||
def gzip(*paths)
|
def gzip(*paths)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user