diff options
Diffstat (limited to 'Library/Homebrew/os.rb')
| -rw-r--r-- | Library/Homebrew/os.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/os.rb b/Library/Homebrew/os.rb index e16c81c7d..918758458 100644 --- a/Library/Homebrew/os.rb +++ b/Library/Homebrew/os.rb @@ -6,4 +6,13 @@ module OS def self.linux? /linux/i === RUBY_PLATFORM end + + # Utilities + if OS.mac? + PATH_OPEN = "/usr/bin/open" + elsif OS.linux? + PATH_OPEN = "xdg-open" + else + raise "Unknown operating system" + end end |
