From 564692fd30e7c27695bb1bf79c882e4889140848 Mon Sep 17 00:00:00 2001 From: Mostafa Eweda Date: Fri, 15 May 2015 11:38:48 -0700 Subject: [PATCH] Update initial paths with local paths only --- src/atom.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/atom.coffee b/src/atom.coffee index 0d029b61d..2639eaca6 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -763,7 +763,8 @@ class Atom extends Model # Notify the browser project of the window's current project path watchProjectPath: -> @disposables.add @project.onDidChangePaths => - @constructor.updateLoadSetting('initialPaths', @project.getPaths()) + @constructor.updateLoadSetting('initialPaths', + @project.getPaths().filter((projectPath) -> fs.existsSync(projectPath))) exit: (status) -> app = remote.require('app')