Permalink
Browse files

try cygstart to open a HTML file

  • Loading branch information...
1 parent 503655e commit ae842e672be08f82ef9868198824bbaafe26e722 @kyanagi committed Feb 22, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/markup-preview-command.rb
  2. +1 −0 lib/markup-preview-command/util/util.rb
@@ -13,7 +13,7 @@ class Runner
include Util
TMPDIR = File.join(Dir.tmpdir, 'markup-preview')
- TMPFILE = File.join(TMPDIR, $$.to_s)
+ TMPFILE = File.join(TMPDIR, $$.to_s) + '.html'
FileUtils.mkdir_p(TMPDIR) unless FileTest.directory? TMPDIR
@@ -8,6 +8,7 @@ def command_exist? (command)
def browser_command
return "gnome-open" if command_exist? "gnome-open"
return "open" if command_exist? "open"
+ return "cygstart" if command_exist? "cygstart"
exit 1
end

0 comments on commit ae842e6

Please sign in to comment.