fix(launchDoctor): support existing LD_LIBRARY_PATH (#3165)

This commit is contained in:
Max Schmitt 2020-07-27 19:05:12 +02:00 committed by GitHub
parent f4e584ea08
commit 9b502af4e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ function lddAsync(filePath: string): Promise<{stdout: string, stderr: string, co
cwd: dirname,
env: {
...process.env,
LD_LIBRARY_PATH: dirname,
LD_LIBRARY_PATH: process.env.LD_LIBRARY_PATH ? `${process.env.LD_LIBRARY_PATH}:${dirname}` : dirname,
},
});