Start the crash service process on non-Mac.
This commit is contained in:
parent
a9c20dc42f
commit
75e1fb63c8
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue