<p dir="auto">-EDIT-<br>
Duplicate issue.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="456600253" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/18824" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/18824/hovercard" href="https://github.com/electron/electron/issues/18824">#18824</a></p>

<h3 dir="auto">Preflight Checklist</h3>

<ul dir="auto">
<li>[ x] I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li>[x ] 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>[x ] 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>

</li>
</ul>
Electron 5.0.6</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>

Linux,Windows</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>

</li>
</ul>
Electron 4.1.1</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>

<p dir="auto">Load flash plugin</p>
<h3 dir="auto">Actual Behavior</h3>

<p dir="auto">Unable to load plugin</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">git clone <a href="https://gitlab.com/gamerworld/application" rel="nofollow">https://gitlab.com/gamerworld/application</a><br>
npm install electron@latest jquery<br>
npm start</p>
<p dir="auto">than go to Plazma Burst 2 for example and you will see it is unable to load the flash plugin. Close it than do npm i electron@4.1.1 than npm start and do the same thing and you will see it works with older version of electron and breaks on the current version.</p>
<h3 dir="auto">Screenshots</h3>

<p dir="auto">Electron 4.1.1<br>
<a href="https://imgur.com/RMgZJ84.png" rel="nofollow">https://imgur.com/RMgZJ84.png</a></p>
<p dir="auto">Electron 5.0.9:<br>
<a href="https://imgur.com/w1LTrcL.png" rel="nofollow">https://imgur.com/w1LTrcL.png</a></p>
<ul dir="auto">
<li><strong>Electron Version</strong> (output of <code class="notranslate">node_modules/.bin/electron --version</code>):
<ul dir="auto">
<li>1.8.8</li>
</ul>
</li>
<li><strong>Operating System</strong> (Platform and Version):
<ul dir="auto">
<li>macOS 10.14.3</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">require('child_process').spawn(script)</code>  returns a child_process object that has an associated PID and can be killed.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">If I spawn a PyInstaller-created binary on macOS like</p>
<p dir="auto"><code class="notranslate">let pythonChild = require('child_process').spawn(script)</code></p>
<p dir="auto">then pythonChild === null, even though it spawns correctly. This means I can't kill it effectively when the app closes. This works fine on Windows/Linux, and it works fine with regular Python scripts. This also works fine when run from <code class="notranslate">node -i</code> on macOS, suggesting it's Electron-related. (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="410548517" data-permission-text="Title is private" data-url="https://github.com/nodejs/node/issues/26117" data-hovercard-type="issue" data-hovercard-url="/nodejs/node/issues/26117/hovercard" href="https://github.com/nodejs/node/issues/26117">nodejs/node#26117</a>)</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Build a Python binary with PyInstaller (I can supply mine if you trust it) and try spawning it this way.</p>