diff --git a/Rakefile b/Rakefile index c586950a..f3ae4142 100644 --- a/Rakefile +++ b/Rakefile @@ -126,7 +126,14 @@ end task :default => [ :odin_lab ] task :open => :default do - system("open build/index.html") + case `uname`.chomp + when "Darwin" + system("open build/index.html") + when "Linux" + system("xdg-open build/index.html &>/dev/null") + else + puts "Unknown platform #{`uname`}; Can't open" + end end task :clean do system("rm -r build")