Where is Electron's app.getAppPath() pointing to?
<p>I am using browserify to merge all the .js files of my app into a <code>dist/main.js</code>. My <code>package.json</code> looks like:</p>

<pre><code>"main": "./dist/main.js",
"scripts": {
    "start": "electron ./dist/main.js",
},
"bin": {
  "electron": "./node_modules/.bin/electron"
}
</code></pre>

<p>and I can correctly run my application with <code>npm run start</code>.
However if in <code>main.js</code> I use <code>app.getAppPath()</code> I get:</p>

<p><code>/home/myuser/projects/electronProject/node_modules/electron/dist/resources/default_app.asar</code></p>

<p>I would expect this to be</p>

<p><code>/home/myuser/projects/electronProject/dist/main.js</code></p>

<p>Did I misunderstood the usage of this method? How can I get the path of the Electron program entrypoint? What is the role of <code>default_app.asar</code>?</p>

<p>Thanks</p>