I am trying to create a desktop application with electron, angular2, typescript and neDB.In order to be able create a \'file\' database with neDB I want the path to my proje
If you're running a packaged app and you want to get the path to the app executable (NOT the main Node process index script path, which could be inside an ASAR), app.getAppPath()
is incorrect. You want app.getPath("exe")
, and to get the path it's:
require("path").dirname(require('electron').remote.app.getPath("exe"))