diff --git a/src/browser/atom-application.coffee b/src/browser/atom-application.coffee index 7460952a1..5aad02674 100644 --- a/src/browser/atom-application.coffee +++ b/src/browser/atom-application.coffee @@ -492,6 +492,14 @@ class AtomApplication else BrowserWindow.getFocusedWindow() + openOptions = + properties: properties.concat(['multiSelections', 'createDirectory']) + title: 'Open' + + if process.platform is 'linux' + if projectPath = @lastFocusedWindow?.projectPath + openOptions.defaultPath = projectPath + dialog = require 'dialog' - dialog.showOpenDialog parentWindow, title: 'Open', properties: properties.concat(['multiSelections', 'createDirectory']), (pathsToOpen) => + dialog.showOpenDialog parentWindow, openOptions, (pathsToOpen) => @openPaths({pathsToOpen, devMode, safeMode, window})