mirror of
https://github.com/atom/atom.git
synced 2026-02-15 00:55:14 -05:00
Revert "Initial paths shouldn't be normalized on save and restore (could contain uris)"
This commit is contained in:
@@ -5,7 +5,6 @@ app = require 'app'
|
||||
fs = require 'fs-plus'
|
||||
path = require 'path'
|
||||
yargs = require 'yargs'
|
||||
url = require 'url'
|
||||
nslog = require 'nslog'
|
||||
|
||||
console.log = nslog
|
||||
@@ -46,11 +45,9 @@ start = ->
|
||||
|
||||
cwd = args.executedFrom?.toString() or process.cwd()
|
||||
args.pathsToOpen = args.pathsToOpen.map (pathToOpen) ->
|
||||
normalizedPath = fs.normalize(pathToOpen)
|
||||
if url.parse(pathToOpen).protocol?
|
||||
pathToOpen
|
||||
else if cwd
|
||||
path.resolve(cwd, normalizedPath)
|
||||
pathToOpen = fs.normalize(pathToOpen)
|
||||
if cwd
|
||||
path.resolve(cwd, pathToOpen)
|
||||
else
|
||||
path.resolve(pathToOpen)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user