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


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


delegate = require 'atom_delegate'
path = require 'path'
BrowserWindow = require 'browser_window'
Menu = require 'menu'
ipc = require 'ipc'
dialog = require 'dialog'
optimist = require 'optimist'
