diff --git a/lib/main.js b/lib/main.js index f57a1e9b..f9e060ea 100644 --- a/lib/main.js +++ b/lib/main.js @@ -29,8 +29,8 @@ class PythonLanguageClient extends AutoLanguageClient { } async startServerProcess(projectPath) { - // For some reason Atom only detects the correct env if started from the command line on Mac. - const env = process.platform === "darwin" ? await shellEnv() : process.env; + // For some reason Atom only detects the correct env if started from the command line on Mac and Debian. + const env = process.platform === "darwin" || process.platform === "linux" ? await shellEnv() : process.env; const childProcess = cp.spawn(atom.config.get("ide-python.pylsPath"), { cwd: projectPath, env: env