I need to be able to open a document using its default application in Windows and Mac OS. Basically, I want to do the same thing that happens when you double-click on the do
Just for completeness (it wasn't in the question), xdg-open will do the same on Linux.