fix: app.getAppPath() returning default-app path for files or directories without package.json (#18763)
This commit is contained in:
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
10
spec/fixtures/api/app-path/lib/index.js
vendored
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue