fix: don't propagate GDK_BACKEND to subprocs (#28898)

This commit is contained in:
Shelley Vohr 2021-06-08 16:10:27 +02:00 committed by GitHub
parent b27c5b94f7
commit 7b169c2884
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 42 additions and 0 deletions

View file

@ -367,6 +367,13 @@ describe('web security', () => {
});
});
ifdescribe(process.platform === 'linux')('subprocesses', () => {
it('does not propagate GDK_BACKEND', () => {
const backend = process.env.GDK_BACKEND;
expect(backend).to.eq(null);
});
});
describe('command line switches', () => {
let appProcess: ChildProcess.ChildProcessWithoutNullStreams | undefined;
afterEach(() => {