From 63dd1ec2c4a6998acf70b4b6b749633c13c819e7 Mon Sep 17 00:00:00 2001 From: Ishan Arora Date: Thu, 15 Jun 2017 18:34:48 +0530 Subject: [PATCH] fixes #22593 --- src/vs/platform/environment/node/environmentService.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vs/platform/environment/node/environmentService.ts b/src/vs/platform/environment/node/environmentService.ts index 34a82d9d57185..2a93543b82f03 100644 --- a/src/vs/platform/environment/node/environmentService.ts +++ b/src/vs/platform/environment/node/environmentService.ts @@ -30,6 +30,9 @@ function getUniqueUserId(): string { } function getNixIPCHandle(userDataPath: string, type: string): string { + if (process.env['XDG_RUNTIME_DIR']) { + return path.join(process.env['XDG_RUNTIME_DIR'], `${pkg.name}-${pkg.version}-${type}.sock`); + } return path.join(userDataPath, `${pkg.version}-${type}.sock`); }