 # This a weirdo file. We don't create a Window class, we just add stuff to
 # the DOM window.
 windowAdditions =
-  appRoot: OSX.NSBundle.mainBundle.resourcePath
-
   path: null
 
   startup: ->

  triggerEvent: ->
    atom.trigger arguments...

  canOpen: (path) ->
    false

for key, value of windowAdditions
  console.warn "DOMWindow already has a key named `#{key}`" if window[key]
  window[key] = value


  open: (path) ->
    path = atom.native.openPanel() unless path
    (atom.document.open path) or atom.app.open path

  close: (path) ->
    @shutdown()
    $atomController.close

  handleKeyEvent: ->
    atom.keybinder.handleEvent arguments...
