Merge pull request #3631 from atom/ks-set-default-path-to-open-on-linux

Set default path to open on linux
This commit is contained in:
Kevin Sawicki
2014-09-25 10:57:52 -07:00

View File

@@ -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})