Fixed an issue pgAdmin fails to launch due to inconsistent PATH variable name on windows. #7153, #7125

This commit is contained in:
Kristof Mattei 2024-02-01 08:37:39 -07:00 committed by GitHub
parent 1ac385be27
commit 956401015d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,7 +80,7 @@ function startDesktopMode() {
process.env[key] = updated_path;
}
if (platform() === 'win32' && (key === 'PATH' || key == 'Path')) {
if (platform() === 'win32' && key.toUpperCase() === 'PATH') {
let _libpq_path = path.join(path.dirname(path.dirname(path.resolve(pgadminFile))), 'runtime');
process.env[key] = _libpq_path + ';' + process.env[key];
}