From 37f5a3311610ab14c0e393268c41d2cfdb162bef Mon Sep 17 00:00:00 2001 From: Bjoernsen Date: Fri, 13 Mar 2015 13:36:07 +0100 Subject: [PATCH] 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. --- src/browser/atom-application.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/atom-application.coffee b/src/browser/atom-application.coffee index 1ecbe9570..52fc08c21 100644 --- a/src/browser/atom-application.coffee +++ b/src/browser/atom-application.coffee @@ -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. #