How to use app.getAppPath?
See original GitHub issueI’m trying to access app.getAppPath() in a component, but nothing I have tried is returning this property.
It would be super if the docs included how to do this.
Here is the snippet of the last thing I tried:
const { app } = require('electron');
export default {
name: 'ImportExport',
data: function(){
return {
midiAccess: null,
activePort: null,
log: [],
appPath: app.getAppPath()
}
},
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Where is Electron's app.getAppPath() pointing to?
app.getAppPath() Returns String - The current application directory. From the docs. An asar file is a simple archive format that just appends the...
Read more >app | Electron
getAppPath () . Returns string - The current application directory. app.getPath(name) . name string - ...
Read more >electron.App.getAppPath JavaScript and Node.js ... - Tabnine
How to use. getAppPath. function. in. App. Best JavaScript code snippets using electron.App.getAppPath(Showing top 12 results out of 315). Tabnine vs.
Read more >JavaScript electron app.getAppPath Examples
JavaScript app.getAppPath - 30 examples found. These are the top rated real world JavaScript examples of electron.app.getAppPath extracted from open source ...
Read more >How to use the electron.app.getPath function in electron - Snyk
To help you get started, we've selected a few electron.app. ... Use Snyk Code to scan source code in minutes - no build...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@nklayman any reasons why I’m getting
Uncaught TypeError: fs.existsSync is not a functionwhen I’m importing electronYou need to use Electron Remote: