diff options
Diffstat (limited to 'Library/Homebrew/macos')
| -rw-r--r-- | Library/Homebrew/macos/xquartz.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/macos/xquartz.rb b/Library/Homebrew/macos/xquartz.rb index 346fdd412..6e64901fc 100644 --- a/Library/Homebrew/macos/xquartz.rb +++ b/Library/Homebrew/macos/xquartz.rb @@ -16,6 +16,12 @@ module MacOS::XQuartz extend self "2.7.4" end + def provided_by_apple? + [FORGE_BUNDLE_ID, APPLE_BUNDLE_ID].find do |id| + MacOS.app_with_bundle_id(id) + end == APPLE_BUNDLE_ID + end + # This should really be private, but for compatibility reasons it must # remain public. New code should use MacOS::XQuartz.{bin,lib,include} # instead, as that accounts for Xcode-only systems. |
