Skip to content
This repository
Browse code

use javaw for windows, remove platform-specific comment

git-svn-id: file:///home/svn/framework3/trunk@10806 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information...
commit 6dc76cb09131b7d5033ac2f8df5780eb8c93c6f7 1 parent 672fc87
Joshua J. Drake jduck authored

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. +5 4 msfgui
9 msfgui
@@ -7,12 +7,13 @@
7 7 # $Revision$
8 8 #
9 9
10   -#java -jar $(dirname $(readlink -n $0))/data/gui/msfgui.jar
11   -
12 10 msfbase = __FILE__
13 11 while File.symlink?(msfbase)
14 12 msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
15 13 end
16 14
17   -exec "java -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
18   -
  15 +if RUBY_PLATFORM =~ /mswin|mingw/i
  16 + exec "javaw -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
  17 +else
  18 + exec "java -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
  19 +end

0 comments on commit 6dc76cb

Please sign in to comment.
Something went wrong with that request. Please try again.