<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">15.3.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 10 (OS Build 19042. 1288)</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">The Electron app opens as expected</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">After launching my app I can see this windows 7 - like window for a split second, from what I've found this is caused by hiding the title bar with <code class="notranslate">titleBarStyle: 'hidden'</code> or <code class="notranslate">frame: false</code>. Am I missing something obvious or is this a bug?</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/71839692/138552845-630512f1-8a40-4c4b-bf53-328d6156f976.png"><img src="https://user-images.githubusercontent.com/71839692/138552845-630512f1-8a40-4c4b-bf53-328d6156f976.png" alt="Screenshot 2021-10-23 124008" style="max-width: 100%;"></a></p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">My window constructor looks like this:<br>
<code class="notranslate">       mainWindow = new BrowserWindow({ width: 800, height: 600, autoHideMenuBar: true, titleBarStyle: 'hidden', icon: __dirname + 'icon.ico', webPreferences:{ nodeIntegration: true, contextIsolation: false, } });</code></p>
<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li>
<p dir="auto"><strong>Electron Version:</strong><br>
Electron 9.1.0</p>
</li>
<li>
<p dir="auto"><strong>Operating System:</strong><br>
Debian GNU/Linux 10 (buster)</p>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Rotate the electron after the npm start command</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">[17300:0714/163809.183079:FATAL:electron_main_delegate.cc(264)] Running as root without --no-sandbox is not supported. See <a href="https://crbug.com/638180" rel="nofollow">https://crbug.com/638180</a>.</p>
<p dir="auto">Example of running without root, see the output of the npm start command:</p>
<p dir="auto">:~$ npm start<br>
/usr/bin/env: “node”: No file or directory</p>
<p dir="auto">Obs : The same output happens when you go to the application directory where I try to run the electron</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Just follow the documentation to install electron and create the application.</p>