diff --git a/app/cmdLine.js b/app/cmdLine.js index 25249f22d6d..a0e254f006a 100644 --- a/app/cmdLine.js +++ b/app/cmdLine.js @@ -114,6 +114,7 @@ app.on('will-finish-launching', () => { // User clicked on a file or dragged a file to the dock on macOS app.on('open-file', (event, path) => { event.preventDefault() + path = encodeURI(path) if (!focusOrOpenWindow(path)) { newWindowURL = path }