Old question, but I found it convenient to configure this in package.json
(this applies to the console from the main process)
"main": "app/src/main.js", "scripts": { "postinstall": "install-app-deps", "start": "npm install && electron . > /tmp/electron-app.log", "pack": "build --dir", "dist": "build", "dist:win": "build --platform win32", "dist:linux": "build --platform linux" }
You could work it out a bit, for example, get the path / tmp / from somewhere, but you get the idea :)
I would advise accepting the accepted answer and generally constantly calling βmainβ from the renderer: the costs of this context change are quite large and can even be huge if you register JSON objects that need to be converted to a string and parsed back to Trip. Your renderer will work with a hand brake!
rupps source share