<p dir="auto">I'm unable to make a simple IPC communication between node and spawned electron process working on linux ubuntu. It works fine on Windows.</p>
<p dir="auto">node.js code</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var electron = require('electron-prebuilt')
var spawn = require('child_process').spawn

var child = spawn(electron, ['electron-script.js'], {
  stdio: ['ipc']
})

child.on('message', function (m) {
  console.log('Yes it works!')
})"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">electron</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron-prebuilt'</span><span class="pl-kos">)</span>
<span class="pl-k">var</span> <span class="pl-s1">spawn</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'child_process'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">spawn</span>

<span class="pl-k">var</span> <span class="pl-s1">child</span> <span class="pl-c1">=</span> <span class="pl-s1">spawn</span><span class="pl-kos">(</span><span class="pl-s1">electron</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">'electron-script.js'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
  <span class="pl-c1">stdio</span>: <span class="pl-kos">[</span><span class="pl-s">'ipc'</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>

<span class="pl-s1">child</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'message'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">m</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Yes it works!'</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">electron script</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="process.send('I am ok')
process.exit(0);"><pre class="notranslate"><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s">'I am ok'</span><span class="pl-kos">)</span>
<span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-en">exit</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">On windows I get back <code class="notranslate">Yes it works!</code> to console. There seems to be no communication happening and nothing is printed on ubuntu. Thank you for the help.</p>
<ul dir="auto">
<li>Electron version: ~ 1.3.1</li>
<li>Operating system: Ubuntu</li>
</ul>
<ul dir="auto">
<li>Electron version:<br>
1.8.4</li>
<li>Operating system:<br>
Arch Linux</li>
<li>Freetype version:<br>
2.9.0</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Electron should render fonts using subpixel rendering</p>

<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Fonts are rendered in greyscale mode.</p>

<h3 dir="auto">How to reproduce</h3>
<p dir="auto">I guess the issue is related to freetype. It started after the new freetype release. It happens to every electron-based application (vscode, atom, ... ).</p>

<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9977153/38354561-4eb45290-38cf-11e8-9856-51591d344963.png"><img src="https://user-images.githubusercontent.com/9977153/38354561-4eb45290-38cf-11e8-9856-51591d344963.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9977153/38354586-5e71319e-38cf-11e8-8b7d-d80b4cded9a1.png"><img src="https://user-images.githubusercontent.com/9977153/38354586-5e71319e-38cf-11e8-8b7d-d80b4cded9a1.png" alt="image" style="max-width: 100%;"></a></p>