diff --git a/app/commands-main.js b/app/commands-main.js index e183990..8150750 100644 --- a/app/commands-main.js +++ b/app/commands-main.js @@ -28,12 +28,12 @@ var commands = { editConfigFile: function (abrApp) { var dirPath = constants.path.userConfig; - shell.openItem(dirPath); + shell.openPath(dirPath); }, openConfigDir: function (abrApp) { var dirPath = constants.path.userData; - shell.openItem(dirPath); + shell.openPath(dirPath); }, about: function (abrApp) { diff --git a/app/renderer/abr-document.js b/app/renderer/abr-document.js index f111b63..dbf44d7 100644 --- a/app/renderer/abr-document.js +++ b/app/renderer/abr-document.js @@ -330,7 +330,7 @@ function AbrDocument () { url = "http://" + url; } } - const openLink = shell.openPath || shell.openItem; + const openLink = shell.openPath; openLink(url); }; diff --git a/app/renderer/commands.js b/app/renderer/commands.js index d1188b7..66ea640 100644 --- a/app/renderer/commands.js +++ b/app/renderer/commands.js @@ -180,7 +180,7 @@ var commands = { editConfigFile: function(win, abrDoc, cm) { var dirPath = constants.path.userConfig; - shell.openItem(dirPath); + shell.openPath(dirPath); }, /* Format */ @@ -331,17 +331,17 @@ var commands = { openConfigDir: function(win, abrDoc, cm) { var dirPath = constants.path.userData; - shell.openItem(dirPath); + shell.openPath(dirPath); }, openTempDir: function(win, abrDoc, cm) { var dirPath = constants.path.tmp; - shell.openItem(dirPath); + shell.openPath(dirPath); }, openAppDir: function(win, abrDoc, cm) { var dirPath = constants.path.app; - shell.openItem(dirPath); + shell.openPath(dirPath); }, execCommand: function(win, abrDoc, cm) {