From 2abbabdafe76dac73eeb2dcedff8ba08c7289805 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Thu, 18 Apr 2019 16:18:49 -0400 Subject: [PATCH] Respect "headless" on non-spec windows --- src/atom-environment.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/atom-environment.js b/src/atom-environment.js index bb18ead31..8f523acb8 100644 --- a/src/atom-environment.js +++ b/src/atom-environment.js @@ -784,7 +784,9 @@ class AtomEnvironment { const loadStatePromise = this.loadState().then(async state => { this.windowDimensions = state && state.windowDimensions - await this.displayWindow() + if (!this.getLoadSettings().headless) { + await this.displayWindow() + } this.commandInstaller.installAtomCommand(false, (error) => { if (error) console.warn(error.message) })