Skip to content

Commit

Permalink
On Linux, use 'xdg-open' for opening URIs in default browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbepple committed Feb 16, 2010
1 parent 675d381 commit 80c0b0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/browsers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ def self.matches_name? string
def visit uri
system 'open', uri if macos?
system 'start', uri if windows?
system 'xdg-open', uri if linux?
end

def supported?
macos?
macos? or linux?
end

def to_s
Expand Down

0 comments on commit 80c0b0c

Please sign in to comment.