Fix space escaping in paths dragged onto the icon (#545)

This commit is contained in:
James Hall 2016-08-02 00:02:46 +01:00 committed by GitHub
parent 7e941b0451
commit 7d765d531e

View file

@ -192,7 +192,7 @@ export function openFile (path) {
// We need to use 'php-escape-shell' property this way
// until this eslint issue will be fixed:
// https://github.com/eslint/eslint/issues/6755
let command = shellEscape.php_escapeshellcmd(path);
let command = shellEscape.php_escapeshellcmd(path).replace(/ /g, '\\ ');
if (stats.isDirectory()) {
command = `cd ${command}\n`;
} else if (stats.isFile() && isExecutable(stats)) {