diff --git a/src/main-process/atom-application.coffee b/src/main-process/atom-application.coffee index f48a4a016..ba2fce4a4 100644 --- a/src/main-process/atom-application.coffee +++ b/src/main-process/atom-application.coffee @@ -445,6 +445,9 @@ class AtomApplication # :window - {AtomWindow} to open file paths in. # :addToLastWindow - Boolean of whether this should be opened in last focused window. openPaths: ({initialPaths, pathsToOpen, executedFrom, pidToKillWhenClosed, newWindow, devMode, safeMode, windowDimensions, profileStartup, window, clearWindowState, addToLastWindow, env}={}) -> + if not pathsToOpen? or pathsToOpen.length is 0 + return + devMode = Boolean(devMode) safeMode = Boolean(safeMode) clearWindowState = Boolean(clearWindowState)