Permalink
Browse files

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...
1 parent 672fc87 commit 6dc76cb09131b7d5033ac2f8df5780eb8c93c6f7 @jduck jduck committed Oct 24, 2010
Showing with 5 additions and 4 deletions.
  1. +5 −4 msfgui
View
9 msfgui
@@ -7,12 +7,13 @@
# $Revision$
#
-#java -jar $(dirname $(readlink -n $0))/data/gui/msfgui.jar
-
msfbase = __FILE__
while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-exec "java -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
-
+if RUBY_PLATFORM =~ /mswin|mingw/i
+ exec "javaw -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
+else
+ exec "java -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
+end

0 comments on commit 6dc76cb

Please sign in to comment.