<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><strong>Electron Version:</strong>
<ul dir="auto">
<li>5.0.6</li>
</ul>
</li>
<li><strong>Node Version:</strong>
<ul dir="auto">
<li>8.16.0</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Ubuntu 18.04 x64</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>4.2.6</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">It starts the electron app smoothly</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">npm ERR! Linux 4.18.0-25-generic<br>
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"<br>
npm ERR! node v8.10.0<br>
npm ERR! npm  v3.5.2<br>
npm ERR! code ELIFECYCLE<br>
npm ERR! electron-test-sdk@1.0.0 start: <code class="notranslate">electron .</code><br>
npm ERR! Exit status 1<br>
npm ERR!<br>
npm ERR! Failed at the electron-test-sdk@1.0.0 start script 'electron .'.<br>
npm ERR! Make sure you have the latest version of node.js and npm installed.<br>
npm ERR! If you do, this is most likely a problem with the electron-test-sdk package,<br>
npm ERR! not with npm itself.<br>
npm ERR! Tell the author that this fails on your system:<br>
npm ERR!     electron .<br>
npm ERR! You can get information on how to open an issue for this project with:<br>
npm ERR!     npm bugs electron-test-sdk<br>
npm ERR! Or if that isn't available, you can get their info via:<br>
npm ERR!     npm owner ls electron-test-sdk<br>
npm ERR! There is likely additional logging output above.</p>
<p dir="auto">npm ERR! Please include the following file with any support request:<br>
npm ERR!     /home/taghive/Programming/Code/electron-test-sdk/npm-debug.log</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto"><a href="https://github.com/electron/electron-quick-start">https://github.com/electron/electron-quick-start</a><br>
sudo npm start (with above configuration)</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><strong>Electron Version:</strong>
<ul dir="auto">
<li>6.0.0-beta.5, 5.0.2</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Linux - Ubuntu 18.04 x64</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>4.2.3</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>

<p dir="auto">Electron should warn root users that <code class="notranslate">Running as root without --no-sandbox is not supported.</code>, even if ELECTRON_ENABLE_LOGGING is not set</p>
<h3 dir="auto">Actual Behavior</h3>

<p dir="auto">Running Electron as root fails silently, unless the user sets the environment variable <code class="notranslate">ELECTRON_ENABLE_LOGGING=true</code>.  When <code class="notranslate">ELECTRON_ENABLE_LOGGING=true</code>, the console displays the message:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Running as root without --no-sandbox is not supported."><pre class="notranslate">Running as root without --no-sandbox is not supported.</pre></div>
<p dir="auto">This behaviour is really confusing as causes people to think Electron doesn't work on their platform (eg see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="445758871" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/18350" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/18350/hovercard" href="https://github.com/electron/electron/issues/18350">#18350</a>) We should provide more context here.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">As root run:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/electron/electron-quick-start.git
$ npm install
$ npm start "><pre class="notranslate">$ git clone https://github.com/electron/electron-quick-start.git
$ npm install
$ npm start </pre></div>
<p dir="auto">No output.</p>
<p dir="auto">Again as root run:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ export ELECTRON_ENABLE_LOGGING=true
$ npm start"><pre class="notranslate">$ <span class="pl-k">export</span> ELECTRON_ENABLE_LOGGING=true
$ npm start</pre></div>
<p dir="auto">Warning message appears</p>
<h3 dir="auto">Screenshots</h3>

<h3 dir="auto">Additional Information</h3>