Add support for opening a file or URL in the preferred application.

This is not yet implemented on Linux.