未验证 提交 d2ff4f71 编写于 作者: J João Moreno 提交者: GitHub

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

Address GDK snap issues
...@@ -57,6 +57,12 @@ const nodeCachedDataDir = getNodeCachedDir(); ...@@ -57,6 +57,12 @@ const nodeCachedDataDir = getNodeCachedDir();
// Configure static command line arguments // Configure static command line arguments
const argvConfig = configureCommandlineSwitchesSync(args); 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') * Support user defined locale: load it early before app('ready')
* to have more things running in parallel. * to have more things running in parallel.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册