From 0ee98a0f0bf8636c7d521257d5a79431fbbd1277 Mon Sep 17 00:00:00 2001 From: Tom Black Date: Tue, 7 Mar 2017 23:18:43 -0500 Subject: Use a more cross-platform "open" command --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index afd4383..1026af1 100644 --- a/Rakefile +++ b/Rakefile @@ -45,7 +45,9 @@ end def run_web_test(file) print_task "Running web build test" run_cmd "ruby2d build --web test/#{file}.rb --debug" - system "open build/app.html" + open_cmd = 'open' + if RUBY_PLATFORM =~ /linux/ then open_cmd = "xdg-#{open_cmd}" end + system "#{open_cmd} build/app.html" end # Tasks -- cgit v1.2.3