mirror of
https://github.com/atom/atom.git
synced 2026-01-26 15:28:27 -05:00
Allow Atom on Windows to run multiple instances e.g. on Windows server/Citrix etc
This commit is contained in:
@@ -33,7 +33,8 @@ class AtomApplication
|
||||
@open: (options) ->
|
||||
unless options.socketPath?
|
||||
if process.platform is 'win32'
|
||||
options.socketPath = "\\\\.\\pipe\\atom-#{options.version}-sock"
|
||||
userNameSafe = new Buffer(process.env.USERNAME).toString('base64')
|
||||
options.socketPath = "\\\\.\\pipe\\atom-#{options.version}-#{userNameSafe}-sock"
|
||||
else
|
||||
options.socketPath = path.join(os.tmpdir(), "atom-#{options.version}-#{process.env.USER}.sock")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user