fix: app.getAppPath() returning default-app path for files or directories without package.json (#18763)

This commit is contained in:
Milan Burda 2019-06-19 23:34:22 +02:00 committed by Alexey Kuzmin
parent 7201845894
commit 79f0c444fd
4 changed files with 40 additions and 2 deletions

10
spec/fixtures/api/app-path/lib/index.js vendored Normal file
View file

@ -0,0 +1,10 @@
const { app } = require('electron')
const payload = {
appPath: app.getAppPath()
}
process.stdout.write(JSON.stringify(payload))
process.stdout.end()
process.exit()