diff --git a/lib/x11/xcore.js b/lib/x11/xcore.js index 0ed03a3..270a11f 100644 --- a/lib/x11/xcore.js +++ b/lib/x11/xcore.js @@ -342,7 +342,8 @@ module.exports.createClient = function(initCb, display) // try local socket on non-windows platforms if ( ['cygwin', 'win32', 'win64'].indexOf(process.platform) < 0 ) { - if (process.platform == 'darwin') + console.log(['here1', display, process.platform]); + if (process.platform == 'darwin' || process.platform == 'mac') { // socket path on OSX is /tmp/launch-(some id)/org.x:0 if (display[0] == '/') @@ -352,7 +353,6 @@ module.exports.createClient = function(initCb, display) } else if(host == '127.0.0.1') socketPath = '/tmp/.X11-unix/X' + displayNum; } - socketPath = display; if(socketPath) { stream = net.createConnection(socketPath);