I’m building an Electron app where the user will be able to edit some config files and I would like to allow the user to select the preferred app/editor.
When I do this, I get
EACCES error, which stands for “permission denied” even though the owner of the app is the user executing the command.
var child = require('child_process').execFile; execFile('/Applications/Sublime\ Text.app/', console.log);
Why does this error occur and how can I overcome it? Also, if I will succeed in opening the editor how can I specify the path of the file I want to open?