From a4605307700a3803ad7c9c64c8bfed0acd6a4dfd Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 5 Dec 2013 10:43:45 -0800 Subject: [PATCH] Show warning message opening opening dev window without repo cloned --- src/browser/atom-application.coffee | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/browser/atom-application.coffee b/src/browser/atom-application.coffee index 75b978e72..550023228 100644 --- a/src/browser/atom-application.coffee +++ b/src/browser/atom-application.coffee @@ -245,6 +245,14 @@ class AtomApplication # + initialSize: # Object with height and width keys. openPath: ({pathToOpen, pidToKillWhenClosed, newWindow, devMode, initialSize}={}) -> + if devMode and not fs.existsSync(global.devResourcePath) + dialog.showMessageBox + type: 'warning' + buttons: ['OK'] + message: 'Atom source directory not found.' + detail: 'To run a window in dev mode you need to have the atom/atom repo cloned to ~/github/atom' + return + if pathToOpen [basename, initialLine] = path.basename(pathToOpen).split(':') if initialLine