         { label: 'Quit', accelerator: 'Command+Q', click: -> app.quit() }
       ]
 
+    fileMenu =
+      label: 'File'
+      submenu: [
+        { label: 'Open...', accelerator: 'Command+O', click: => @promptForPath() }
+      ]
+
     editMenu =
       label: 'Edit'
       submenu:[

      if pathsToOpen?.length > 0
        @openPaths(pathsToOpen)
      else
        pathsToOpen = dialog.showOpenDialog title: 'Open', properties: ['openFile', 'openDirectory', 'multiSelections', 'createDirectory']
        @openPaths(pathsToOpen)

    ipc.on 'new-window', =>
      @open()

        { label: 'Bring All to Front', selector: 'arrangeInFront:' }
      ]

    @menu = Menu.buildFromTemplate [atomMenu, fileMenu, editMenu, viewMenu, windowMenu]
    Menu.setApplicationMenu @menu

  handleEvents: ->
    # Clean the socket file when quit normally.
    app.on 'will-quit', =>
      fs.unlinkSync socketPath if fs.existsSync(socketPath)
