fixes for Electron 9

This commit is contained in:
Feross Aboukhadijeh
2020-07-15 14:35:03 -07:00
parent 1f19ed9a2d
commit 27bbdcc465
5 changed files with 10 additions and 10 deletions

View File

@@ -141,9 +141,9 @@ function init () {
* Shell
*/
ipc.on('openItem', (e, ...args) => {
ipc.on('openPath', (e, ...args) => {
const shell = require('./shell')
shell.openItem(...args)
shell.openPath(...args)
})
ipc.on('showItemInFolder', (e, ...args) => {
const shell = require('./shell')

View File

@@ -1,6 +1,6 @@
module.exports = {
openExternal,
openItem,
openPath,
showItemInFolder,
moveItemToTrash
}
@@ -19,9 +19,9 @@ function openExternal (url) {
/**
* Open the given file in the desktops default manner.
*/
function openItem (path) {
log(`openItem: ${path}`)
electron.shell.openItem(path)
function openPath (path) {
log(`openPath: ${path}`)
electron.shell.openPath(path)
}
/**