Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: Failed to open path with a space in the name of a folder #44

Open
demipel8 opened this issue Oct 28, 2015 · 0 comments
Open

Linux: Failed to open path with a space in the name of a folder #44

demipel8 opened this issue Oct 28, 2015 · 0 comments

Comments

@demipel8
Copy link

Trying to execute open from grunt I got the next warning:

Warning: Command failed: /bin/sh -c /run/media/lol/New Folder/node_modules/open/vendor/xdg-open "http://localhost:9000"
/bin/sh: /run/media/lol/New: No such file or directory

I've fixed it adding a function to escape the space, don't know if it's the best solution:

opener = space(path.join(__dirname, '../vendor/xdg-open'));
function space(s) {
    return s.replace(/ /g, '\\\ ');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant