       dialog.openFolder currentWindow, {}, (result, paths...) =>
         new AtomWindow
           bootstrapScript: 'window-bootstrap',
-          resourcePath: @commandLineArgs['resource-path']
+          resourcePath: @resourcePath
 
 class AtomWindow
   @windows = []

    resourcePaths.push path.join(homeDir, '.atom', 'packages')

    resourcePaths = resourcePaths.map (relativeOrAbsolutePath) =>
      path.resolve @commandLineArgs['resource-path'], relativeOrAbsolutePath

    process.env['NODE_PATH'] = resourcePaths.join path.delimiter


delegate.browserMainParts.preMainMessageLoopRun = ->
  new AtomWindow
    bootstrapScript: 'window-bootstrap',
    resourcePath: browserMain.resourcePath
