From f5b211efaa9ca1c3f8e160ba7e85b4e0494b515b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 31 Oct 2024 12:43:36 +0000 Subject: [PATCH] os/linux/diagnostic: remove XDG_DATA_DIRS. --- Library/Homebrew/extend/os/linux/diagnostic.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Library/Homebrew/extend/os/linux/diagnostic.rb b/Library/Homebrew/extend/os/linux/diagnostic.rb index 28322c0afd6c7..6393c2b39e503 100644 --- a/Library/Homebrew/extend/os/linux/diagnostic.rb +++ b/Library/Homebrew/extend/os/linux/diagnostic.rb @@ -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?