mirror of
https://github.com/atom/atom.git
synced 2026-02-02 10:45:14 -05:00
Make crash reporter work.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
AtomWindow = require './atom-window'
|
||||
BrowserWindow = require 'browser-window'
|
||||
Menu = require 'menu'
|
||||
crashReporter = require 'crash-reporter'
|
||||
app = require 'app'
|
||||
ipc = require 'ipc'
|
||||
dialog = require 'dialog'
|
||||
@@ -43,6 +44,7 @@ class AtomApplication
|
||||
@pathsToOpen ?= []
|
||||
@windows = []
|
||||
|
||||
@setupCrashReporter()
|
||||
@listenForArgumentsFromNewProcess()
|
||||
@setupNodePath()
|
||||
@setupJavaScriptArguments()
|
||||
@@ -86,6 +88,11 @@ class AtomApplication
|
||||
|
||||
process.env['NODE_PATH'] = resourcePaths.join path.delimiter
|
||||
|
||||
setupCrashReporter: ->
|
||||
crashReporter.setCompanyName 'GitHub'
|
||||
crashReporter.setSubmissionURL 'https://speakeasy.githubapp.com/submit_crash_log'
|
||||
crashReporter.setAutoSubmit true
|
||||
|
||||
listenForArgumentsFromNewProcess: ->
|
||||
fs.unlinkSync socketPath if fs.existsSync(socketPath)
|
||||
server = net.createServer (connection) =>
|
||||
|
||||
Reference in New Issue
Block a user