From 9743e84d0b858adaa52a33d02e426076ae64a4de Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Fri, 3 May 2013 11:40:20 -0400 Subject: [PATCH] Use launchy for opening browsers --- rakefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/rakefile b/rakefile index 5d74f27dd4..fb0b96044a 100644 --- a/rakefile +++ b/rakefile @@ -601,15 +601,7 @@ task :showdocs, [:options] do |t, args| end Dir.chdir("#{path}/build/html") do - if RUBY_PLATFORM.include? 'darwin' # mac os - sh('open index.html') - elsif RUBY_PLATFORM.include? 'linux' # make more ubuntu specific? - sh('sensible-browser index.html') # ubuntu - else - raise "\nUndefined how to run browser on your machine. -Please use 'rake builddocs' and then manually open -'mitx/#{path}/build/html/index.html." - end + Launchy.open('index.html') end end