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
def check_xdg_data_dirs
xdg_data_dirs = ENV.fetch("XDG_DATA_DIRS", nil)
return if xdg_data_dirs.blank? || xdg_data_dirs.split("/").include?(HOMEBREW_PREFIX/"share")
xdg_data_dirs = ENV.fetch("HOMEBREW_XDG_DATA_DIRS", nil)
return if xdg_data_dirs.blank? || xdg_data_dirs.split(":").include?(HOMEBREW_PREFIX/"share")
<<~EOS
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
TMUX
XDG_CACHE_HOME
XDG_DATA_DIRS
XDG_RUNTIME_DIR
ZDOTDIR
)