diff --git a/src/atom/window.coffee b/src/atom/window.coffee index c46031319..6d92f6c12 100644 --- a/src/atom/window.coffee +++ b/src/atom/window.coffee @@ -42,7 +42,10 @@ windowAdditions = open: (path) -> $atomController.window.makeKeyAndOrderFront $atomController - atom.trigger 'window:open', path + if atom.document.open path + atom.trigger 'window:open', path + else + atom.app.open path close: (path) -> @shutdown()