<ul dir="auto">
<li>Electron version: 0.37.7</li>
<li>Operating system: Windows 64, Ubuntu 14.04, 15.10</li>
</ul>
<p dir="auto">One of the application of us packaged with electron 0.37.7 will quit silently before seeing the window when run. The cause is found, using debugger on a ubuntu 14.04 virtual machine, to be  <code class="notranslate">app.makeSingleInstance</code> in the main.js file returns true even for the first instance of the program. All the machines having the problem had not run (or "installed") the program before. After down grade to 0.37.6 and re-package, the program startup OK and the problem disappears. Then, after upgrade to 0.37.7 again the problem also does not re-appear (due to this reason, it never manifests on our development machine and other old machines having used the program packaged with lower versions of electron). It is found that the problem is still there even for a very simple probram with empty main page and almost empty main.js.</p>
<p dir="auto">Any ideas?</p>
<ul dir="auto">
<li>Electron version: 0.37.7</li>
<li>Operating system: MacOS 10.11.4</li>
</ul>
<p dir="auto">Create a directory with the attached <code class="notranslate">package.json</code> and <code class="notranslate">main.js</code> files. The app just calls <code class="notranslate">app.makeSingleInstance</code> (code sample copied from the Electron docs) and then creates an empty window.</p>
<p dir="auto"><a href="https://github.com/electron/electron/files/233556/package.json.txt">package.json.txt</a><br>
<a href="https://github.com/electron/electron/files/233558/main.js.txt">main.js.txt</a></p>
<p dir="auto">Type:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    rm -rf ~/Library/Application\ Support/Electron
    npm start"><pre class="notranslate"><code class="notranslate">    rm -rf ~/Library/Application\ Support/Electron
    npm start
</code></pre></div>
<p dir="auto">The app will display</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    ### version 0.37.7
    ### shouldQuit:  true"><pre class="notranslate"><code class="notranslate">    ### version 0.37.7
    ### shouldQuit:  true
</code></pre></div>
<p dir="auto">...even though no other instance is running.</p>
<p dir="auto">If you create an empty ~/Library/Application\ Support/Electron directory, the app runs as expected.</p>
<p dir="auto">(Obviously, any established Electron developer will have such a directory and will not notice this bug. Their users will notice it very quickly indeed.)</p>