Merge pull request #17947 from gromgit/diagnostic/xdg-data-dirs

This commit is contained in:
Mike McQuaid 2024-08-05 13:52:54 +01:00 committed by GitHub
commit a8e6262a6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -60,8 +60,8 @@ module Homebrew
end end
def check_xdg_data_dirs def check_xdg_data_dirs
xdg_data_dirs = ENV.fetch("XDG_DATA_DIRS", nil) xdg_data_dirs = ENV.fetch("HOMEBREW_XDG_DATA_DIRS", nil)
return if xdg_data_dirs.blank? || xdg_data_dirs.split("/").include?(HOMEBREW_PREFIX/"share") return if xdg_data_dirs.blank? || xdg_data_dirs.split(":").include?(HOMEBREW_PREFIX/"share")
<<~EOS <<~EOS
Homebrew's share was not found in your XDG_DATA_DIRS but you have Homebrew's share was not found in your XDG_DATA_DIRS but you have

View File

@ -185,6 +185,7 @@ USED_BY_HOMEBREW_VARS=(
SUDO_USER SUDO_USER
TMUX TMUX
XDG_CACHE_HOME XDG_CACHE_HOME
XDG_DATA_DIRS
XDG_RUNTIME_DIR XDG_RUNTIME_DIR
ZDOTDIR ZDOTDIR
) )