Enable multiple users

Currently, it is not possible to use atom for multiple users on the same linux machine. The socket file '/tmp/atom.sock' belongs to the first user that starts atom.
With this small change, a socket file will be created for each user.
This commit is contained in:
Bjoernsen
2015-03-13 13:36:07 +01:00
parent 7d77e90e45
commit 37f5a33116

View File

@@ -18,7 +18,7 @@ DefaultSocketPath =
if process.platform is 'win32'
'\\\\.\\pipe\\atom-sock'
else
path.join(os.tmpdir(), 'atom.sock')
path.join(os.tmpdir(), "atom_#{process.env['USER']}.sock")
# The application's singleton class.
#