rauschma / openurl

Node.js module for opening a URL via the operating system
71 stars 19 forks source link

Some improvements to the command launching #3

Open jmc-88 opened 12 years ago

jmc-88 commented 12 years ago

I've replaced 'explorer.exe' with 'start' on Windows, which is more general and should work for all kind of URLs. I've also made 'xdg-open' the default handler for platforms other than Microsoft Windows or Mac OS X, since it seems like the other supported platforms should all have 'xdg-open' (http://nodejs.org/api/process.html#process_process_platform).