def start_with(profile, profile_path, *args)
if Platform.cygwin?
profile_path = Platform.cygwin_path(profile_path, :windows => true)
elsif Platform.windows?
profile_path = profile_path.gsub("/", "\\")
end
ENV['XRE_CONSOLE_LOG'] = profile.log_file if profile.log_file
ENV['XRE_PROFILE_PATH'] = profile_path
ENV['MOZ_NO_REMOTE'] = '1'
ENV['MOZ_CRASHREPORTER_DISABLE'] = '1'
ENV['NO_EM_RESTART'] = '1'
if Platform.linux? && (profile.native_events? || profile.load_no_focus_lib?)
modify_link_library_path profile_path
end
execute(*args)
cope_with_mac_strangeness(args) if Platform.mac?
end