Merge pull request #94503 from microsoft/joao/fix-snap-env

Address GDK snap issues
This commit is contained in:
João Moreno 2020-04-06 09:25:19 +02:00 committed by GitHub
commit d2ff4f7143
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,12 @@ const nodeCachedDataDir = getNodeCachedDir();
// Configure static command line arguments
const argvConfig = configureCommandlineSwitchesSync(args);
// Remove env set by snap https://github.com/microsoft/vscode/issues/85344
if (process.env['SNAP']) {
delete process.env['GDK_PIXBUF_MODULE_FILE'];
delete process.env['GDK_PIXBUF_MODULEDIR'];
}
/**
* Support user defined locale: load it early before app('ready')
* to have more things running in parallel.