Change the firing order
Ubuntu has this glib bug (g_slice_set_config) that results us seeing a bunch of warnings when we call system("firefox") in Ruby. It doesn't look like our fault, but since this generates a lot of text on msfconsole, we try to avoid that.bug/bundler_fix
parent
38bc8c88ae
commit
5554138fac
|
@ -184,7 +184,7 @@ def self.open_webrtc_browser(url='http://google.com/')
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if defined? ENV['PATH']
|
if defined? ENV['PATH']
|
||||||
['firefox', 'google-chrome', 'chrome', 'chromium', 'firefox', 'opera'].each do |browser|
|
['google-chrome', 'chrome', 'chromium', 'firefox' , 'firefox', 'opera'].each do |browser|
|
||||||
ENV['PATH'].split(':').each do |path|
|
ENV['PATH'].split(':').each do |path|
|
||||||
browser_path = "#{path}/#{browser}"
|
browser_path = "#{path}/#{browser}"
|
||||||
if File.exists?(browser_path)
|
if File.exists?(browser_path)
|
||||||
|
|
Loading…
Reference in New Issue