Skip to content

Commit

Permalink
os/linux/diagnostic: remove XDG_DATA_DIRS.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Oct 31, 2024
1 parent f780e93 commit f5b211e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Library/Homebrew/extend/os/linux/diagnostic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,6 @@ def check_tmpdir_executable
f&.unlink
end

def check_xdg_data_dirs
xdg_data_dirs = ENV.fetch("HOMEBREW_XDG_DATA_DIRS", nil)
return if xdg_data_dirs.blank?
return if xdg_data_dirs.split(":").include?("#{HOMEBREW_PREFIX}/share")

<<~EOS
Homebrew's share was not found in your XDG_DATA_DIRS but you have
this variable set to include other locations.
Some programs like `vapigen` may not work correctly.
Consider adding Homebrew's share directory to XDG_DATA_DIRS like so:
echo 'export XDG_DATA_DIRS="#{HOMEBREW_PREFIX}/share:$XDG_DATA_DIRS"' >> #{Utils::Shell.profile}
EOS
end

def check_umask_not_zero
return unless File.umask.zero?

Expand Down

0 comments on commit f5b211e

Please sign in to comment.