 browserMain = new BrowserMain
 
 delegate.browserMainParts.preMainMessageLoopRun = ->
+  Menu.setApplicationMenu browserMain.menu
+
   new AtomWindow
     bootstrapScript: 'window-bootstrap',
     resourcePath: browserMain.resourcePath

    modifiedArgv = ['node'].concat(process.argv) # optimist assumes the first arg will be node
    args = optimist(modifiedArgv).argv
    @resourcePath = args['resource-path']

  setupNodePaths: ->
    resourcePaths = [


    @setupJavaScriptArguments()
    @parseCommandLine()
    @buildApplicationmenu()
    @setupNodePaths()
    @handleEvents()

