Skip to content

Commit

Permalink
brew: keep DBus session address in env
Browse files Browse the repository at this point in the history
Otherwise `brew deps --graph` will fail to launch Firefox on Linux.

Fixes #12881.
  • Loading branch information
Adrian Ho committed Feb 17, 2022
1 parent fbf94fe commit cbac7a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ def exec_browser(*args)

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

# GZips the given paths, and returns the gzipped paths.
Expand Down

0 comments on commit cbac7a3

Please sign in to comment.