electron/docs/fiddles/system/system-app-user-information/app-information/main.js

5 lines
140 B
JavaScript
Raw Normal View History

const {app, ipcMain} = require('electron')
ipcMain.on('get-app-path', (event) => {
event.sender.send('got-app-path', app.getAppPath())
})