Undo add command line parameter to set portable

undo 4312f76ed7 to include this in a pull
request of its own
This commit is contained in:
Dave Rael
2015-10-16 07:02:53 -06:00
parent 82f5e81cec
commit 03faddd7ae
3 changed files with 1 additions and 27 deletions

View File

@@ -8,9 +8,6 @@ class AtomPortable
execDirectoryPath = path.dirname(process.execPath)
path.join(execDirectoryPath, '..', '.atom')
@setPortable: (existingAtomHome) ->
fs.copySync(existingAtomHome, @getPortableAtomHomePath())
@isPortableInstall: (platform, environmentAtomHome) ->
return false unless platform is 'win32'
return false if environmentAtomHome

View File

@@ -61,7 +61,6 @@ setupAtomHome = (args) ->
return if process.env.ATOM_HOME
atomHome = path.join(app.getHomeDir(), '.atom')
AtomPortable = require './atom-portable'
AtomPortable.setPortable(atomHome) if not AtomPortable.isPortableInstall(process.platform, process.env.ATOM_HOME) and args.setPortable
atomHome = AtomPortable.getPortableAtomHomePath() if AtomPortable.isPortableInstall(process.platform, process.env.ATOM_HOME)
try
atomHome = fs.realpathSync(atomHome)
@@ -108,7 +107,6 @@ parseCommandLine = ->
options.alias('t', 'test').boolean('t').describe('t', 'Run the specified specs and exit with error code on failures.')
options.alias('v', 'version').boolean('v').describe('v', 'Print the version.')
options.alias('w', 'wait').boolean('w').describe('w', 'Wait for window to be closed before returning.')
options.alias('p', 'set-portable').boolean('p').describe('p', 'Set portable mode.')
options.string('socket-path')
args = options.argv
@@ -134,7 +132,6 @@ parseCommandLine = ->
profileStartup = args['profile-startup']
urlsToOpen = []
devResourcePath = process.env.ATOM_DEV_RESOURCE_PATH ? path.join(app.getHomeDir(), 'github', 'atom')
setPortable = args['set-portable']
if args['resource-path']
devMode = true
@@ -164,6 +161,6 @@ parseCommandLine = ->
{resourcePath, devResourcePath, pathsToOpen, urlsToOpen, executedFrom, test,
version, pidToKillWhenClosed, devMode, safeMode, newWindow, specDirectory,
logFile, socketPath, profileStartup, setPortable}
logFile, socketPath, profileStartup}
start()