From 5b8a915b41246726a2f8f27bb8ce444943679c4c Mon Sep 17 00:00:00 2001 From: Oliver Kennedy Date: Sun, 17 Feb 2019 00:49:27 -0500 Subject: [PATCH] Support for linux open --- Rakefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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")