From 75e1fb63c8bed733bc96fdcd3bf6b3a9a8964d21 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 24 Nov 2013 20:45:12 +0800 Subject: [PATCH] Start the crash service process on non-Mac. --- common/api/lib/crash-reporter.coffee | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/api/lib/crash-reporter.coffee b/common/api/lib/crash-reporter.coffee index fea4407298..ae97461058 100644 --- a/common/api/lib/crash-reporter.coffee +++ b/common/api/lib/crash-reporter.coffee @@ -1,3 +1,4 @@ +{spawn} = require 'child_process' binding = process.atomBinding 'crash_reporter' class CrashReporter @@ -11,6 +12,14 @@ class CrashReporter ignoreSystemCrashHandler ?= false extra ?= {} + if process.platform isnt 'darwin' + args = [ + "--reporter-url=#{submitUrl}", + "--application-name=#{productName}" + ] + env = ATOM_SHELL_INTERNAL_CRASH_SERVICE: 1 + spawn process.execPath, args, {env} + binding.start productName, companyName, submitUrl, autoSubmit, ignoreSystemCrashHandler, extra module.exports = new CrashReporter